Send file with Telegram (using telegram-cli)

Dolphin Service Menus dolphin dolphin-service-menu telegram

Source:

1
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

g99

6 days ago

+

Report

manuelsongokuh

4 months ago

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

Report

C

alex-l

1 month ago

I'm going to publish a service menu using Telegram Desktop instead of telegram-cli. Would it be better for you?

Report

manuelsongokuh

6 months 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

C

alex-l

6 months ago

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?

Report

alpvonkri

1 year 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

1 year ago

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

Report

File (click to download) Version Description Packagetype Architecture Downloads Date Filesize DL OCS-Install
Pling me
Details
license
Creative Commons Attribution
version
updated Dec 22 2017
added Feb 25 2017
downloads today
0
page views today 1
System Tags cc-by addon