Telegram Channel
Connect your Mesachat bot to Telegram for instant AI-powered conversations.
Prerequisites
- A Telegram account
- A bot token from @BotFather
Creating a Telegram Bot
- Open Telegram and search for @BotFather
- Send
/newbot - Choose a name (e.g., "My Mesachat Bot")
- Choose a username (must end in
bot, e.g.,my_mesa_bot) - Copy the bot token — you'll need it next
Connecting to Mesachat
- Go to Bots in the Mesachat sidebar
- Select your bot (or create a new one)
- Click the Integrations tab
- Click Add Integration → Telegram
- Paste your bot token
- Click Save
Mesachat will automatically register the webhook with Telegram.
Authorizing Channels
By default, your bot will only respond in authorized channels. To authorize a chat:
- Go to Channels → Authorized Channels
- Click Add Channel
- Enter the Telegram chat ID
- Select the tenant and authorization group
Send a message to your bot, then check the Interactions page in the admin panel. The chat ID will be displayed in the conversation details.
Webhook Configuration
Mesachat automatically manages Telegram webhooks. When you create or update a Telegram integration, the webhook URL is registered with Telegram's API.
Webhook URL format: https://your-domain.com/webhooks/telegram/{botId}
Telegram requires HTTPS for webhooks. For local development, use ngrok to create an HTTPS tunnel.
Commands
Mesachat supports Telegram bot commands. Users can type / to see available commands:
| Command | Description |
|---|---|
/ping | Check if the bot is responsive |
/help | Show available commands |
/chat | Start an AI conversation |
/roll | Roll a random number |
Commands are configured per-bot and can be customized in the admin interface.