Send file with Telegram using telegram-cli

Dolphin Service Menus dolphin

Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

Original
1
Become a Fan
6.1

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

Ratings & Comments

6 Comments

manuelsongokuh

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

alex-l

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

manuelsongokuh

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

alex-l

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?

alpvonkri

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.

alex-l

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

Pling
0 Affiliates
Details
license Creative Commons Attribution
version
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 3

is part of these Collections:

Service Menus for Dolphin file manager
alex-l
last update date: 6 years ago

Score 5.0

More Dolphin Service Menus from alex-l:

Export Libreoffice and Office documents to PDF
alex-l
last update date: 4 years ago

Score 7.0

[NEW] Send file with Telegram using Telegram Desktop
alex-l
last update date: 7 years ago

Score 6.5

Convert WAV audio to MP3
alex-l
last update date: 7 years ago

Score 5.0

Convert SVG drawings to Plain SVGs
alex-l
last update date: 7 years ago

Score 6.6

Export Markdown documents as PDFs
alex-l
last update date: 7 years ago

Score 6.8

Build Dockerfile
alex-l
last update date: 7 years ago

Score 6.1

Other Dolphin Service Menus:

burnWithGrowisofs
chunkylover
last update date: 20 years ago

Score 5.0

Firefox-bookmarks service menu
storyteller
last update date: 20 years ago

Score 5.0

Text Convert Service Menu
smp-penguin
last update date: 21 years ago

Score 5.0

Pdflatex servicemenu
bobuse
last update date: 20 years ago

Score 5.0

Send through Bluetooth
dmnet
last update date: 21 years ago

Score 5.0

Add to Bloglines
spookster
last update date: 20 years ago

Score 5.0



System Tags