Connect Telegram to The-Y CRM
Messages to your Telegram bot land in the same inbox as email, WhatsApp and web chat. You reply in the CRM and the reply goes back through the bot. All you need is a Telegram account and about 5 minutes; Telegram charges nothing.
Contents: 1. Create a bot · 2. Connect in the CRM · 3. Test · Good to know · Opening hours & auto-reply · If something does not work · Disconnect and delete
1. Create a bot with @BotFather (in Telegram, about 2 minutes)
- Open @BotFather. In Telegram, open the chat with @BotFather. It is Telegram's official bot for creating bots – look for the blue check mark next to the name. In the CRM, the link “Open @BotFather” takes you straight there.
- Send it
/newbot. - Enter a name. Your customers see this name, e.g. your company name (“Sunshine Travel”).
- Enter a username. It must end in
bot, e.g.sunshine_travel_bot. People find you through it:t.me/sunshine_travel_bot. - Copy the key. @BotFather replies with a key (token) that looks like this:
123456789:AAH….
2. Connect in the CRM (1 minute)
- Open Settings → Channels. With several brands, first choose the brand the bot should belong to at the top of the “Connected” card.
- Under “Add a channel”, click “Telegram”.
- Paste the key into “Bot key (token)”. The “Label” is optional and only visible to you in the CRM (empty = the bot's name).
- Click “Connect”. The CRM checks the key with Telegram, shows the bot's name and @username and sets up receiving.
The key is stored encrypted and never shown again. The bot is now in the “Connected” list; “Edit” opens its window.
3. Test
In the bot's window, “How to test” shows the link to your bot. Open t.me/<your-bot-username> on your phone, tap “Start” and write something. After a few seconds the message is in the inbox. Reply there – the reply arrives in Telegram.
Good to know
- A bot may never write first. This is a Telegram rule. Your customers open the bot and tap “Start”; after that you can reply at any time. That is why there is no new conversation from the CRM for Telegram.
- Private chats only. The CRM does not take over messages in groups or channels. Edited messages and reactions do not come in.
- Files: photos, documents, voice messages and videos arrive as attachments (up to 20 MB, Telegram's limit for bots). If a file is bigger, the conversation shows a note to view it in Telegram. Locations and shared contacts appear as text in the conversation (locations with a map link). You can send photos up to 10 MB and other files up to 50 MB.
- Several bots: you can connect several bots, e.g. one per brand. Each bot belongs to one brand. If the same person writes to two bots, there are two conversations (one per bot) but only one contact.
- Contact: the person is recognised by their Telegram ID, not by name. Name and @username come from Telegram. Telegram does not pass a phone number to a bot unless the person shares their contact themselves.
- Marketing: automations do not send marketing messages via Telegram (there is no consent for it there). Service replies always go out.
- Free plan: receiving is never limited; your replies count towards the 1,000 outgoing messages per month (all channels combined).
- Self-hosted: Telegram only delivers to a public https address (port 443, 80, 88 or 8443). It does not work on a home network without your own domain. More under Self-hosting.
Opening hours & auto-reply
Under Settings → Opening hours & holidays, Telegram is listed like the other channels: its own hours or “Like opening hours”, and an automatic reply to the first message – inside and outside the hours. Default: “Like opening hours”, auto-reply off. More about opening hours
If something does not work
| Message | What to do |
|---|---|
| “That does not look like a key from @BotFather.” | Copy the whole key: number, colon, letters – no spaces. |
| “Telegram does not know this key.” | At @BotFather use /mybots → your bot → “API Token” to get the current key. |
| “This bot is already connected.” | The bot is already connected to this account. Check the “Connected” list – with several brands, in the other brands too. |
| “Telegram only delivers to a public https address.” | Self-hosted CRM only: Telegram needs a domain with https (port 443, 80, 88 or 8443). |
| In the conversation: “The person has blocked the bot” | Nothing to do – the person no longer wants messages. |
| In the conversation: “A bot may not write first.” | The person has to open the bot and tap “Start” first. |
| In the conversation: “Telegram no longer accepts the bot's key.” | You generated a new key at @BotFather (/revoke). Save the new key in the bot's window under “Enter a new key”. |
| In the conversation: “Telegram is slowing things down …” | Too many messages in a short time. “Send again” in a minute. |
| Nothing arrives | In the bot's window click “Check connection”. If it says the bot currently sends its messages somewhere else (e.g. another program), click “Set up receiving again” – the other program will then get nothing. |
| “No bot can be connected in the test environment.” | Telegram does not work in the test environment without sign-up. Create a free account for it. |
Disconnect and delete
- “Disconnect” (in the bot's window): Telegram stops delivering messages to the CRM and the key is deleted. Conversations stay. You can connect the bot again later with its key.
- “Delete” (bottom left of the window): like disconnect, and the channel disappears from the list. Conversations stay in the inbox.
- To delete the bot itself, use
/deletebotat @BotFather.
