Bitrix24 Helpdesk

Connect Telegram bot

You can connect Telegram to a Bitrix24 Open Channel in a few steps using a Telegram chat bot. After you connect the bot, customers can contact you through Telegram, and you can reply in Bitrix24 Messenger. Bitrix24 saves the chat history in the related CRM record.

To connect a Telegram bot, you need an access token. You can get it when you create a new bot or request it for an existing bot. You can do this in the Telegram web app or mobile app.

Web version
Mobile app
  1. Go to CRM > Contacts > Contact Center.
  2. Select Telegram and click Connect.

Create a new bot

  1. Open the Telegram BotFather link and click Send Message.
  2. Click Start.
  3. Enter the /newbot command.

Enter a name for your bot. Customers will see this name in Telegram. It also appears in the contact and channel lists.

Enter a username for the bot. The username must end with bot.

After the bot is created, copy the access token.

Telegram bots support one-on-one chats only. We recommend disabling groups so users cannot add your bot to group chats.

  1. Enter the /mybots command.
  2. Select your bot from the list.
  3. Open Bot Settings.
  4. Click Allow Groups?
  5. Click Turn groups off.

To add a profile picture for the bot:

  1. Enter the /setuserpic command.
  2. Select the bot.
  3. Send an image in the chat.

Get an access token for an existing bot

If you already have a Telegram bot but do not know the access token:

  1. Open BotFather.
  2. Enter the /token command.
  3. Select the bot you want to connect to Bitrix24.
  4. Copy the access token.

To revoke the current token and create a new one:

  1. Enter the /revoke command.
  2. Select your bot.
  3. Copy the new access token.
The old token becomes invalid after you use the /revoke command. Update the token in the Telegram channel settings in Bitrix24.

Finish the connection

  1. Paste the access token into the communication channel settings in Bitrix24.
  2. If you want to connect your online store to the Telegram bot, enable the related option and click Connect.
  3. Configure the Open Channel and agent queue in the Open Channel preferences section.
For more information, see these articles:
Telegram + Bitrix24.Store (beta)
Open Channel settings

Done. Telegram is now connected to Bitrix24, and you can communicate with customers in Bitrix24 Messenger.


How it works

  1. A customer opens the website widget and sends a message through Telegram.
  2. You receive the message in Bitrix24 Messenger.
  3. If the customer does not exist in CRM, Bitrix24 creates a new lead automatically.
Automatic lead creation depends on your Open Channel settings.
Open Channel settings

Important notes

  • You can create up to 20 bots for one Telegram account.
  • Telegram API restrictions prevent sending files larger than 50 MB.
  • If you use the same Telegram bot token in multiple Bitrix24 accounts, the bot works only with the account that connected it most recently.
  • You can edit messages in Telegram chats connected to Bitrix24.
  • Telegram does not share the customer’s phone number automatically. Bitrix24 saves the phone number to CRM only if the customer sends it in a message.

You can connect a Telegram bot to Bitrix24 in the mobile app and invite customers to chat directly from your phone.

For more information, see the article Invite a client to Telegram chat.

Create a new Telegram bot

  1. Open the Telegram mobile app.
  2. Find BotFather and tap Start.
  3. Enter the /newbot command.
  4. Enter a name for your bot. This name appears in the Telegram contact and channel lists.

Enter a username for the bot. The username must end with bot.

Customers can find your bot in Telegram by this username. If the username is already in use, enter a different one.

After the bot is created, Telegram generates an access token. Tap the token to copy it.

Telegram bots support one-on-one chats only. We recommend disabling groups so users cannot add your bot to group chats.

  1. Enter the /mybots command.
  2. Select your bot from the list.
  3. Tap Bot Settings.
  4. Tap Allow Groups?
  5. Tap Turn groups off.

To add a profile picture for the bot:

  1. Enter the /setuserpic command.
  2. Select the bot.
  3. Send an image in the chat.

Get an access token for an existing bot

If you already have a Telegram bot but do not know the access token:

  1. Open the Telegram mobile app.
  2. Find BotFather.
  3. Enter the /token command.
  4. Select your bot and copy the access token.

To revoke the current token and create a new one:

  1. Enter the /revoke command.
  2. Select your bot.
  3. Copy the new access token.
The old token becomes invalid after you use the /revoke command. Update the token in the Telegram channel settings.

Finish the connection

  1. Paste the access token into the Telegram channel settings in the Bitrix24 mobile app.
  2. Tap Connect.

Done. Telegram is now connected to Bitrix24, and you can invite customers to chat. Bitrix24 saves the chat history in the related CRM item.


Important notes

  • You can create up to 20 bots for one Telegram account.
  • Telegram API restrictions prevent sending files larger than 50 MB.
  • If you use the same Telegram bot token in multiple Bitrix24 accounts, the bot works only with the account that connected it most recently.
  • You can edit messages in Telegram chats connected to Bitrix24.
Go to Bitrix24
Don't have an account? Create for free