Description: --- Dependencies --- - telegram-cli (https://github.com/vysheng/tg - available in AUR) - kdialog
--- Instructions --- 1. install telegram-cli 2. login with telegram-cli 3. move "telegram-file-sender" script in ~/.script or edit the location in the .desktop file to where you want to keep the script 4. if you have manually downloaded the .desktop file, move it in ~/.local/share/kservices5/ServiceMenus 5. enjoy
sorry for late reply : not problem from distros, but problem is: my company has installed 200computer plasma kde..i cant spend time for installer each computer..different floors and different rooms..impossible..so i think without to use telegram-cli..for now i dont know what is other solution...
hi
i love to use telegram but i wish to ask you: i did download normally to https://telegram.org/dl/desktop/linux file executive is telegram, so i think if you can add or fix for without "telegram-cli", is it possible?
instead telegram-cli is not good for my company (many users..so installing telegram-cli from github is long time)..
Hi, it's not possible since Telegram Desktop is GUI-only and doesn't have a CLI interface. You can try to fill a request on Telegram Desktop tracker on GitHub asking to add this feature.
Alternatively find a convenient way to install telegram-cli: what's your distro?
for i in $(telegram-cli -C -W -e "dialog_list 51" | tail -n 52 | head -n 50 | cut -d' ' -f2-10 | cut -d':' -f1 | tr ' ' '_')
do
contacts+="$i ";
done;
dest=$(kdialog --combobox Contact: $contacts;)
telegram-cli -W -e "send_file $dest '$1'"
kdialog --passivepopup "File sent to $dest";
exit 0;
--
Shows more chats and autofills the kdialog combobox with only one variable.
Hope it helps.
Ratings & Comments
6 Comments
sorry for late reply : not problem from distros, but problem is: my company has installed 200computer plasma kde..i cant spend time for installer each computer..different floors and different rooms..impossible..so i think without to use telegram-cli..for now i dont know what is other solution...
I'm going to publish a service menu using Telegram Desktop instead of telegram-cli. Would it be better for you?
hi i love to use telegram but i wish to ask you: i did download normally to https://telegram.org/dl/desktop/linux file executive is telegram, so i think if you can add or fix for without "telegram-cli", is it possible? instead telegram-cli is not good for my company (many users..so installing telegram-cli from github is long time)..
Hi, it's not possible since Telegram Desktop is GUI-only and doesn't have a CLI interface. You can try to fill a request on Telegram Desktop tracker on GitHub asking to add this feature. Alternatively find a convenient way to install telegram-cli: what's your distro?
for i in $(telegram-cli -C -W -e "dialog_list 51" | tail -n 52 | head -n 50 | cut -d' ' -f2-10 | cut -d':' -f1 | tr ' ' '_') do contacts+="$i "; done; dest=$(kdialog --combobox Contact: $contacts;) telegram-cli -W -e "send_file $dest '$1'" kdialog --passivepopup "File sent to $dest"; exit 0; -- Shows more chats and autofills the kdialog combobox with only one variable. Hope it helps.
Thank you very much, I will test it and eventually update the script here!