Telegram
Connect a Telegram bot to CostCare AI so your AI agents can receive and respond to messages from your customers on Telegram. You can connect a bot you already created with BotFather, or create a new one from scratch.Connect an existing Telegram bot
1
Open BotFather
In Telegram, search for BotFather and open it. Make sure you’re using the official, verified BotFather account.
2
Find your existing bot
In BotFather, choose your bot from My Bots, then open its settings/token screen.
3
Copy the bot token
Copy the HTTP API token. It looks like this:
4
Open the CostCare dashboard
Go to Dashboard → Channels and click Add new channel.
5
Select Telegram
In the modal, choose Telegram, then click Connect Telegram.
6
Paste the token
Paste the BotFather token into the Bot Token field, then click Connect Bot.
7
Check that the channel was created
The Telegram channel should appear in the left channel list, showing something like:
8
Enable AI for the channel
- Channels → Telegram channel → Enable AI for this channel
9
Choose an agent
On the Channels page, open the Agent block for the channel and select an agent from the Assigned agent dropdown.
10
Test the bot
Open your bot in Telegram and send
/start, then type your message. In CostCare, go to Dashboard → Chats — a new Telegram chat should appear with your message.Connecting an existing Telegram bot
Connect a new Telegram bot
1
Open BotFather
In Telegram, search for @BotFather and open the official bot.
2
Start bot creation
Send
/newbot.3
Enter a bot display name
When BotFather asks “Alright, a new bot. How are we going to call it?”,
enter the public-facing name, for example
CostCare Bot. This name is shown
to your customers.4
Enter a bot username
Enter a username for the bot. It must be unique, use only Latin letters,
numbers, or underscores, and end with
bot — for example,
cool_costcare_bot.5
Copy the generated token
BotFather replies with “Use this token to access the HTTP API:” followed by
the token. Copy it.
6
Connect it in CostCare
Go to Dashboard → Channels → Add new channel, choose Telegram, paste
the token into Bot Token, then click Connect Bot.
7
Enable AI
Toggle Disable AI in all chat, then confirm Yes, enable. Send message
from Telegram and check that the AI responds.
8
Choose an agent
On the Channels page, open the Agent block for the channel and select an agent from the Assigned agent dropdown.
Creating and connecting a new Telegram bot