Telegram Setup
Moira workflows can send Telegram notifications at specific steps using telegram-notification nodes. This requires a Telegram bot and your chat ID.
1. Create a Bot via @BotFather
Section titled “1. Create a Bot via @BotFather”- Open Telegram and search for
@BotFather - Send
/newbot - Choose a display name (e.g., “My Moira Notifications”)
- Choose a username ending in
bot(e.g.,my_moira_bot) - BotFather will reply with a bot token — copy it (format:
123456789:ABCdefGHIjklMNOpqrsTUVwxyz)
2. Get Your Chat ID
Section titled “2. Get Your Chat ID”Method A — @userinfobot:
- Search for
@userinfobotin Telegram - Send any message
- The bot replies with your user ID — that is your chat ID
Method B — Bot API:
- Send any message to your new bot
- Open
https://api.telegram.org/bot<TOKEN>/getUpdatesin a browser - Find
"chat":{"id":XXXXXXX}— that number is your chat ID
3. Save Settings
Section titled “3. Save Settings”- Open Moira and go to Settings
- Click the Telegram tab
- Enter your Bot Token in the corresponding field
- Enter your Chat ID in the corresponding field
- Make sure Enabled is toggled on
- Click Save for each setting
4. Send a Test Notification
Section titled “4. Send a Test Notification”On the same Telegram tab in Settings, click Test Notification. You should receive a message from your bot in Telegram.
Guided Setup via Agent
Section titled “Guided Setup via Agent”If you’re using Moira through an MCP client (Claude Code, Claude Desktop), you can start the guided setup workflow:
start({ workflowId: "moira/telegram-setup", parentExecutionId: "none" })The workflow walks through bot creation, chat ID retrieval, settings configuration, and sends a test notification.
Troubleshooting
Section titled “Troubleshooting””Chat not found” Error
Section titled “”Chat not found” Error”The bot cannot send messages until you send it a message first. Open Telegram, find your bot, send any text (e.g., “hello”), then retry.
”Invalid token” Error
Section titled “”Invalid token” Error”The bot token is incorrect or expired. Go to @BotFather, send /mybots, select your bot, and check the token. Generate a new one if needed.
”Network error” or “Timeout”
Section titled “”Network error” or “Timeout””Temporary connectivity issue. Wait a moment and retry. If persistent, check that the Moira server can reach api.telegram.org.
Bot Does Not Respond
Section titled “Bot Does Not Respond”Bots created via @BotFather do not respond to messages by default. They only send notifications when Moira triggers a telegram-notification node. This is expected behavior.
Notification Not Received
Section titled “Notification Not Received”- Verify you sent a message to the bot (required by Telegram API)
- Check your chat ID is correct (use @userinfobot to confirm)
- Verify Telegram is enabled in Settings > Telegram tab
- Check the bot token has not been revoked