Install telegram-send system-wide with pip: sudo pip3 install telegram-send Telegram-send integrates into your file manager (Thunar, Nautilus and Nemo): To send a location via latitude and longitude: telegram-send -location 35.5398033 -79.7488965Īll captions can be optionally formatted with Markdown or html: telegram-send -image moon.jpg -caption "The _Moon_ at *Night*" -format markdown To send an audio file with an optional caption: telegram-send -audio "Pachelbel's Canon.mp3" -caption "Johann Pachelbel - Canon in D" To send an MP4 video (maximum file size of 50 MB) with an optional caption: telegram-send -video birds.mp4 -caption "Singing Birds" To send a GIF or a soundless MP4 video (encoded as H.264/MPEG-4 AVC with a maximum file size of 50 MB) with an optional caption: telegram-send -animation kitty.gif -caption "?" To send a sticker: telegram-send -sticker sticker.webp To send an image (maximum file size of 10 MB) with an optional caption: telegram-send -image moon.jpg -caption "The Moon at Night" To send a file (maximum file size of 50 MB) with an optional caption: telegram-send -file quran.pdf -caption "The Noble Qur'an" With this option you can send the output of any program. To send a message from stdin: printf 'With\nmultiple\nlines' | telegram-send -stdin To send a message without link previews: telegram-send -disable-web-page-preview "" The -pre flag formats messages as fixed-width text: telegram-send -pre "monospace" Information on supported formatting, see the formatting options. Note that not all Markdown syntax or all HTML tags are supported. Telegram-send -format markdown "||Do good and find good!||" Telegram-send -format html "fixed-width messages are also supported" To send a message using Markdown or HTML formatting: telegram-send -format markdown "Only the *bold* use _italics_" There is a maximum message length of 4096 characters, larger messages will beĪutomatically split up into smaller ones and sent separately. To send a message: telegram-send "Hello, World!" How to send the same message to multiple users?.It provides a simple interface thatĬan be easily called from other programs. Your account, to a group or to a channel. Telegram-send is a command-line tool to send messages and files over Telegram to
0 Comments
Leave a Reply. |