LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

tgsend

Send Telegram messages via bot API

TLDR

Send message
$ tgsend "[message]"
copy
Send to specific chat
$ tgsend -c [chat_id] "[message]"
copy
Send file
$ tgsend -f [document.pdf]
copy
Send image
$ tgsend -p [image.jpg]
copy
Send with caption
$ tgsend -p [image.jpg] -m "[caption]"
copy
Silent message
$ tgsend -s "[message]"
copy

SYNOPSIS

tgsend [-c chatid] [-f file] [-p photo] [options] [message_]

DESCRIPTION

tgsend sends messages, files, and photos to Telegram chats using the Telegram Bot API. It is designed for automation and scripting, enabling notifications, alerts, and file delivery from the command line or cron jobs.Messages can be sent to specific chats using their ID, and media attachments can include captions via the -m flag. The -s flag sends messages silently without triggering a notification on the recipient's device. A bot token is required and can be passed via the -t flag or environment configuration.

PARAMETERS

-c ID

Chat ID.
-f FILE
Send file.
-p FILE
Send photo.
-m TEXT
Caption text.
-s
Silent mode.
-t TOKEN
Bot token.

CAVEATS

Bot token required. Chat ID needed. Rate limits apply.

HISTORY

tgsend is a lightweight CLI tool for sending messages via the Telegram Bot API, commonly used for alerting and automation in DevOps workflows.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid