Send a message to a Telegram chat
Sends a message to any Telegram chat using the tg CLI. Use this to send notifications or alerts from your terminal to yourself or others.
/plugin marketplace add danizord/telecli/plugin install telecli@telecli<chat_id> <message>Quick command to send a message to a Telegram chat.
Parse the arguments:
chat_id (number or @username)Run:
tg message send <chat_id> "<message>"
If user mentions:
--reply-to <id>: Add --reply-to <id> flag--parse-mode html|markdown: Add --parse-mode flag--keyboard <json>: Add --keyboard flag with inline keyboard JSON# Simple message
tg message send 123456789 "Hello!"
# Reply to a message
tg message send 123456789 "Thanks!" --reply-to 42
# With formatting
tg message send 123456789 "<b>Bold</b> text" --parse-mode html