Send Telegram bot notifications from terminal commands and automation scripts.
$ curl -fsSL https://raw.githubusercontent.com/onurkerem/auto-message/main/install.sh | sh
Configure multiple Telegram bots with names like mybot, work, or prod. Set one as default, or pick per command with -c.
Skip the config file entirely — set AUTO_MESSAGE_TOKEN and AUTO_MESSAGE_CHAT_ID as environment variables in any pipeline.
Bot tokens are never logged and masked in all output. Config files are written with restricted permissions. HTTPS only.
Add a bot profile, then send messages from any terminal or script. The tool resolves credentials in order: explicit flag, default profile, environment variables.
One-command install and update via curl | sh
Cross-platform binaries for macOS, Linux, and Windows
Config stored at ~/.config/auto-message/config.json
Resolution order: --config flag > default profile > env vars
Your terminal command goes through auto-message to the Telegram Bot API and arrives as a notification in your chat.
auto-message send "Deploy complete"
Profiles are stored at ~/.config/auto-message/config.json
{
"profiles": [
{
"name": "mybot",
"token": "123456:ABC-DEF",
"chat_id": "999888777",
"default": true
},
{
"name": "work",
"token": "456789:XYZ",
"chat_id": "111222333"
}
]
}