Setup
Connect your Telegram bot to Zexa by following these steps:Create a bot via @BotFather
Open Telegram and start a conversation with @BotFather. Use the
/newbot command, follow the prompts to name your bot, and copy the bot token that BotFather provides.Open Telegram settings in Zexa
Log in to the Zexa dashboard and navigate to Channels > Telegram.
Paste your bot token
Enter the bot token you copied from BotFather and click Save. Zexa will verify the token and activate the connection.
You cannot send messages to a Telegram user who has not previously interacted with your bot. This is a Telegram platform restriction, not a Zexa limitation.
Send a Telegram message via API
Send aPOST request to /messages with "channel": "telegram" to deliver a message via your connected bot.
201 response with the message object:
Supported message formats
Zexa supports the following content types when sending Telegram messages through the API:- Plain text — standard unformatted message content.
- Markdown formatting — use
**bold**,_italic_, and`inline code`syntax to style your messages. Telegram renders these natively. - Links — include URLs directly in the message body; Telegram auto-previews them by default.
Next steps
Webhooks
Receive incoming Telegram messages and capture chat IDs automatically with Zexa webhooks.
Campaigns
Broadcast messages to large subscriber lists across Telegram and other channels with scheduling and reporting.
