Skip to main content

Telegram (user account)

Lets an agent act as your personal Telegram user: read your chats, send messages, and manage contacts via MTProto.

Most bot-style use cases are better served by Telegram Bot. Use this MCP only when you need actual user-account capabilities (private DMs, reading history).

What it can do

  • Read chats and message history from your account
  • Send messages and media on your behalf
  • Manage contacts

How to get credentials

  1. Go to my.telegram.org and sign in with your Telegram number.
  2. Open API development toolsCreate an application.
  3. Copy API ID (a number) and API Hash (a 32-char string).
  4. In FlyMyAI, enter the API ID, API Hash, and your account phone number.
  5. Telegram sends a login code to your account. Paste it in the second setup step to finish authorization.

Fields to fill in FlyMyAI

FlyMyAI fieldWhere it comes from
API IDmy.telegram.org → API development tools
API Hashmy.telegram.org → API development tools
Account PhoneYour Telegram number in international format, e.g. +1…
CodeCode Telegram sent to your account during setup

Troubleshooting

  • "FLOOD_WAIT" — Telegram rate-limited the account. Wait out the cooldown; retrying sooner only extends it.
  • Login code never arrives — make sure the phone number is correct and check your other Telegram sessions for the code.
  • Session revoked — you (or someone) logged the session out from Telegram → Settings → Active Sessions. Reconnect the MCP.