Skip to main content

Telegram Bot

Lets an agent operate a Telegram bot: poll incoming updates, send messages and photos.

What it can do

  • Poll new messages via get_updates
  • Send text replies (send_message)
  • Send photos, including agent-generated images (send_photo)

How to get credentials

  1. Open @BotFather in Telegram.
  2. Send /newbot, pick a name and username.
  3. BotFather returns a Bot Token in the form 123456789:ABCdefGhIJKlmNoPQRstuVwxyZ. Copy it.
  4. Paste the token in FlyMyAI when setting up the MCP.

If you need the bot in a group, add it manually and disable privacy mode with /setprivacy in BotFather if it must read all messages.

Fields to fill in FlyMyAI

FlyMyAI fieldWhere it comes from
Bot TokenBotFather's reply after /newbot

Troubleshooting

  • 401 Unauthorized — token is wrong or the bot was deleted. Ask BotFather for /token on the bot.
  • Bot doesn't see group messages — disable privacy mode with /setprivacy in BotFather, then remove and re-add the bot.