All integrations
Telegram bot setup
Telegram is the cheapest channel — free and unlimited. Each user registers their chat with your SafeOS bot, then receives alerts at medium severity and above.
Setup (server operator)
- Open Telegram and message @BotFather. Send
/newbot. - Choose a display name and a username ending in
_bot. - BotFather replies with an HTTP API token — copy it.
- Add it to your API server's
.env:
TELEGRAM_BOT_TOKEN=1234567890:ABCdefGHIjklMNOpqrSTUvwxYZ
Restart the API server for the change to take effect.
Setup (each recipient)
- Search for your bot by username in Telegram and tap Start.
- Send
/register. The bot replies with a confirmation; the chat ID is now registered with your SafeOS server. - Toggle Send Telegram alerts in Settings → Notifications.
- Run a medium-severity test alert to verify.
Reference: Telegram Bot API docs.