From Bright Pattern Documentation
< 5.8:Telegram-integration-guide
Revision as of 04:14, 29 May 2024 by BpDeeplTranslateMaintenance (talk | contribs) (Updated via BpDeleteTranslateTags script)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
• 日本語
• 5.19 • 5.2 • 5.3 • 5.8


Integration Configuration

When Bright Pattern Contact Center is integrated with Telegram, your Bright Pattern Agent Desktop environment is equipped to handle customer-initiated interactions from the Telegram app on a customer’s mobile phone, tablet, or computer. Incoming chat interactions are routed to the integrated Agent Desktop environment, where agents have direct access to the phone, live chat, email, SMS text, various other mobile messenger apps, customer and agent records, interaction details, and more.

Integration configuration involves linking your business’s Telegram bot to your Bright Pattern Contact Center tenant.

To configure Telegram integration, you will need system access to

  • Your business’s Telegram bot
  • Your tenant’s Contact Center Administrator application

The Telegram application contains the settings for your bot, webhook, and access token. Your Telegram account username is what is used as your organization’s identity. Messaging events for your Telegram account are sent securely to your webhook. Contact Center Administrator is where you add the Telegram integration account to your Bright Pattern tenant.

Configuration Procedure

Step 1: Create a Telegram account

  1. Go to https://my.telegram.org and download and install either the mobile app (Telegram Messenger for Android/iOS), or the desktop app (Telegram for PC/Mac/Linux). If you choose the desktop app, all your Telegram activities will be synced with your mobile phone. This example shows the desktop app.

  2. After installation, launch the app and click Start Messaging.

    Telegram Desktop welcome dialog


  3. Log in to Telegram in one of two ways:

    1. Enter your mobile phone number and click Next. You will receive a login code to continue logging in to Telegram. The code will be sent to your phone, either in the Telegram app in chat, or via SMS/text. When prompted, enter the login code to finish logging in.

      Your Phone Number screen; enter your mobile phone number to log in


    2. Click Quick log in using QR code and follow the instructions on the screen to scan the QR code with your phone (if you already have installed the Telegram Messenger app on your phone) and log in.

      Scan from Mobile Telegram screen; follow the instructions to scan the QR code with your phone and log in


  4. Create a username for your Telegram account. The username is what appears in your Telegram account’s URL, profile, and search results. A username enables Telegram users to search for your business by name (e.g., “Bright Pattern”) by typing the “@” symbol followed by your username into a search box (e.g., “@Brightpattern”). If you do not have a username, Telegram users must know your phone number in order to contact you. You will need your username later in this configuration procedure. See Telegram’s F.A.Q. pages for more information.

You can create a username in Telegram Settings > Edit profile > Add username.

Saving a username in Telegram Settings



Step 2: Create a bot

Telegram bots are third-party applications that run inside Telegram. They interact with users, performing complex tasks such as sending notifications, integrating with tools, social networking, and much more. As with all other Telegram bots, yours will be called a username with “bot” at the end of it (e.g., “brightpattern_bot”). You will use your bot to chat with users on Telegram. Refer to Telegram’s instructions for creating a new bot, which are summarized as follows:

  1. Sign in to your organization’s Telegram account.

  2. In the Search box, search for the BotFather bot (“@BotFather”), select its username, and click Start to begin chatting with the bot.

    Work with BotFather to create a new bot


  3. Type the command /newbot into the chat window with BotFather.

  4. Follow BotFather’s prompts for information, and provide:

    1. Name of your new bot

    2. Username of your new bot (must end with “bot”)

BotFather will provide information regarding your bot, including its URL, access token, and links to help pages. Type the command /mybots to edit your new bot. The menu that appears will include the following options to edit:

  • API Token
  • Bot Settings
  • Delete Bot
  • Edit Bot
  • Payments
Edit bot options


Step 3: Update your bot profile

Click the Edit Bot button to update your bot profile. Your bot is your business’s main point of contact on Telegram. You should complete the following sections of your profile, so that other users will know who your bot is, what it does, and generally what your brand is about.

  • Edit Name - The display name of your bot
  • Edit About - The text shown on the bot's profile page, which will be sent together with a link to your bot when users share it with someone
  • Edit Commands - The commands for your bot, given in list format
  • Edit Description - The description of what the bot can do
  • Edit Userpic - The photo that appears on the bot’s profile, which is seen by any user who visits the profile or chats with the bot.


New bot profile


Step 4: Get the access token

  1. Click the API Token button to get the API token to handle chat interactions. You will need this token to add a Telegram integration account in the Contact Center Administrator application.

  2. Select the entire token and copy it.


Get the API token


Step 5: Create a new integration account in Contact Center Administrator

  1. Log in as Admin to the Contact Center Administrator application.
  2. Navigate to Configuration > Integration Accounts.
  3. Click the Add + button to add a new account.
  4. In the Create integration account window that appears, select Messenger and click OK.

Step 6: Specify Telegram integration account properties

Using the credentials for your Telegram App, enter values for the following screen properties. (If you do not know your credentials, ask your system administrator.)

  • Bot Username - The exact username of your Telegram bot
  • Type - For this integration account, select Telegram as the type of integration.
  • Token - The API token for your Telegram bot
  • Set Webhook - Click this button to confirm that Telegram is the real server, which is needed for Telegram to send you a message from the customer. Note that you must get the token/webhook from Telegram; you cannot generate one here.
  • Test Connection - This button tests the credentials and confirms whether the connection is valid.

Click Apply to save your changes.


Telegram integration account


Next Steps

Your integration account is now configured for Telegram. Next, you will tailor your chat scenario to handle chat interactions, as well as do a real test of your connection by responding to chat interactions from within the Agent Desktop application.

< Previous | Next >