Telegram
Telegram is one of the simplest channels to set up. You create a bot through Telegram’s official @BotFather account, copy the token it gives you, and paste it into your config. Talon handles all polling and message delivery from there.
1. Create a Bot via @BotFather
Section titled “1. Create a Bot via @BotFather”Open Telegram and start a conversation with @BotFather.
Send the command:
/newbotBotFather will prompt you for:
- A display name for the bot (this is shown in conversations, e.g. “My Talon Bot”)
- A username for the bot (must end in
bot, e.g.my_talon_bot)
2. Get Your Bot Token
Section titled “2. Get Your Bot Token”After completing the prompts, BotFather replies with a message containing your bot token:
Done! Congratulations on your new bot. You will find it at t.me/my_talon_bot.Use this token to access the HTTP API:1234567890:AAFxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxCopy the full token string.
3. Add to Config
Section titled “3. Add to Config”Add your bot under channels.telegram.accounts in talon.json:
{ "channels": { "telegram": { "accounts": { "my-bot": { "bot_token": "1234567890:AAFxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" } } } }}Restart Talon and send a message to your bot in Telegram. It will respond immediately.
Configuration Fields
Section titled “Configuration Fields”| Field | Required | Description |
|---|---|---|
bot_token | Yes | The token provided by @BotFather |
allow_from | No | List of Telegram user IDs allowed to message the bot |
model | No | Override the default AI model for this account |
Restricting Access
Section titled “Restricting Access”To allow only yourself to use the bot, add your Telegram user ID to allow_from. You can find your user ID by messaging @userinfobot.
{ "channels": { "telegram": { "accounts": { "my-bot": { "bot_token": "1234567890:AAFxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "allow_from": ["123456789"] } } } }}Message Length
Section titled “Message Length”Telegram enforces a 4096 character limit per message. Talon automatically splits responses that exceed this limit into multiple sequential messages, so long AI responses are delivered in full without any configuration needed.
Multiple Bots
Section titled “Multiple Bots”You can run multiple Telegram bots simultaneously by adding more entries under accounts:
{ "channels": { "telegram": { "accounts": { "personal-bot": { "bot_token": "111111111:AAFxxxxxx", "allow_from": ["123456789"] }, "team-bot": { "bot_token": "222222222:AAFyyyyyy", "allow_from": ["123456789", "987654321"] } } } }}