Rate this page:

Telegram chatbot

Create a new bot on your Telegram account and get your API token.

  1. Open the Telegram application on your device and find the telegram bot named @botfather.
Telegram bot
  1. Enter /help. The system shows you all possible commands the botfather can operate.
/help command
  1. To create a new bot, enter /newbot or click on it. Follow the botfather instructions. After you configure your new bot, the system generates its API token. Copy this API token.
Voximplant bot
  1. Log in to your Voximplant Kit account.
  2. Go to Setup > Conversations > Channels.
  3. Select Telegram.
  4. Enter the channel name in the Channel details section.
  5. Enter the API token you received in the Channel Access Token field.
  6. In the Redirect channel messages field, select a queue or function to route customers’ messages.
Channel details
  1. In the Close channel conversations group box, define the following settings:
  • Max. closing time for agent and unassigned conversations - Specifies the maximum time a conversation waits before closing. The timer applies to agent and unassigned conversations since the last activity or message. When the timer elapses, the conversation automatically closes. The setting value must be greater than the value defined in the Max. waiting time in the queue settings. The value applies to queues and functions. The maximum value is 14 days and the minimum is 60 sec.

  • Max. closing time for bot conversations - Specifies the time given to a customer to reply to the latest message of a bot. When the timer elapses, a conversation closes. The value applies to functions and Dialogflow bots. The maximum value is 7 days and the minimum is 60 sec.

  1. In the Conversation processing group box, define how the channel agents should classify customer conversations.
  • Enable the Use tags switch to allow the channel agents to use tags for conversations' classification. All tags added in the settings are available for the channel agents in their Workspace.

  • Enable the Use topic set switch to allow the channel agents to use a topic set for conversations' classification. Select a topic set from the drop-down list.

Important

A channel can only have one topic set assigned. The assigned topic set is then available for the channel agents in their Workspace. When you select another set, it automatically replaces the previous one.

  1. Add skills if needed.
  2. Click Add channel.
Add the channel
  1. To edit the channel, select it from the channels list and click the Actions menu icon.
  2. Select Edit.
  3. Make the required changes and save them.

Displaying chat buttons

Copy URL

You can add buttons to a Telegram chat to make your bot scenario easier and allow your customers to select a specific topic or section. For example, a bot can prompt a customer to use the Yes or No buttons to select an answer to a question, and route the request accordingly. In an online store, buttons can help customers select the desired section, for example, Clothing, Shoes, or Accessories.

You configure buttons in a function. To display buttons in a Telegram chat room, add the function and route channel messages thereto as shown here.