Send file with Telegram
Dolphin Service Menus
Score 60%
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

manuelsongokuh

1 day ago

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)..

Report

alpvonkri

8 months ago

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.

Report

C

alex-l

8 months ago

Thank you very much, I will test it and eventually update the script here!

Report

File (click to download) Version Description Filetype Packagetype License Downloads Date Filesize OCS-Install DL
Details
version
updated Dec 05 2017
added Feb 25 2017
downloads today
0
page views today 5