Connect your AI agent to Telegram by creating a Telegram bot through BotFather and pasting your token into ChatSpark. Setup takes about five minutes.
6 min read
Updated September 2026
The Telegram channel deploys your ChatSpark AI agent as a Telegram bot. Users can find and message your bot directly in Telegram, and the agent responds automatically using your training data. All conversations appear in your ChatSpark dashboard.
Telegram is popular with tech-savvy audiences, developer communities, and users in regions where Telegram is a primary communication app. It also supports groups and channels, making it useful for community-based support.
You only need a Telegram account to get started. No developer portal or special permissions are required.
Telegram bots are created and managed through @BotFather, the official Telegram bot management account.
@BotFather, or open t.me/BotFather/newbotAcme Support)bot and be unique across Telegram (for example, AcmeSupportBot)1234567890:ABCDefGhiJklMnOpQrStUvWxyz/revoke command in BotFather.That is all you need to do. ChatSpark automatically registers the webhook with Telegram when you save. Your bot is now live.
When a user sends a message to your Telegram bot, Telegram forwards it to ChatSpark through a webhook. ChatSpark processes the message through your agent and sends the response back to the user through the Telegram Bot API. The user sees the reply in their Telegram chat with your bot.
You can set a description, profile photo, and about text for your bot directly in BotFather using the following commands:
/setdescription — Sets the text shown on the bot start screen/setabouttext — Sets the text shown on the bot profile page/setuserpic — Sets the bot profile photoThese are optional but recommended. A well-configured bot profile helps users understand what to expect before they send their first message.
Double-check that you copied the full token from BotFather without any extra spaces. The token format is a number, a colon, and then a long alphanumeric string. If the token was shared or compromised, generate a new one in BotFather using /revoke and update the token in ChatSpark.
Confirm your agent has training data added and has been saved successfully. Also make sure the token in ChatSpark matches the token BotFather assigned to the bot. If they are out of sync, re-paste the token and save again.
Telegram bot usernames must be unique. Try variations such as adding your company name, region, or a descriptive word. The username only affects how users search for the bot and can be changed later using /setusername in BotFather.