Setting Up the Telegram Channel
Telegram is the simplest channel to set up: just a Bot Token created by @BotFather, with no third-party approval or OAuth process.
Prerequisites
- A Telegram account
- A bot created via @BotFather
Creating the bot
If you do not have a bot yet:
- Open Telegram and search for
@BotFather - Send
/newbot - Follow the instructions: choose a name and a username (must end in
bot) - BotFather will return the Bot Token in the format
1234567890:ABCdefGhIJKlmNoPQRsTUVwxyz
Save this token — you will need it in the next step.
Connecting the channel
In the Hub Chatt2.me dashboard:
- Go to Channels → Activate/Configure → Telegram
- Enter the Bot Token obtained from BotFather
- Click Connect
The Hub configures the Telegram webhook automatically. The channel UUID will be available after the connection.
Identifying the recipient (to)
The to field on Telegram is the chat_id — an integer (can be negative for groups) that identifies the conversation.
How to get the chat_id
The most reliable way is via webhook: when the user sends a message to your bot, the chat_id is in the received payload.
Alternatively, you can use the Telegram API directly:
curl https://api.telegram.org/bot<YOUR_BOT_TOKEN>/getUpdates
The chat_id appears in result[].message.chat.id.
Supported content types
Telegram has one of the most complete sets of message types:
- Text
- Image (with optional caption)
- Video (with optional caption)
- Audio (with optional caption)
- Document / file (with name and MIME type)
- Sticker (via image URL)
- Location (latitude and longitude)
- Single or multiple contacts
- Poll via interactive type
- Message reaction
- Reply (replying to a specific message)
Sending to groups
If your bot is added to a group, the group's chat_id is a negative number (e.g. -1001234567890). The bot needs permission to send messages in the group.
Identifying the sender (from)
In POST /v1/communication/telegram/message, set from to the application channel UUID or the bot username configured for that channel (with or without a leading @). The UUID always works as a fallback. See Sending messages overview.