Skip to main content

tri notify — Telegram Notifications

Send notifications to Telegram chats. Used by agents, hooks, and manual alerts.

Usage

tri notify "<message>"

Flags

FlagDescription
"<message>"Message text to send
--chat <id>Target chat ID (overrides default)
--pinPin the message after sending
--edit <msg_id>Edit an existing message instead of sending new

Examples

tri notify "Build complete"                    # Simple notification
tri notify "Deploy done" --pin # Send and pin
tri notify "Updated status" --edit 12345 # Edit existing message
tri notify "Alert" --chat -1001234567890 # Send to specific chat

Environment Variables

VariableRequiredDescription
TELEGRAM_BOT_TOKENYesBot token from @BotFather
TELEGRAM_CHAT_IDYesDefault target chat ID

Handler

File: src/tri/tri_commands.zig:393