Connecting a Telegram bot

RU

UA

US

RU

To create a Telegram bot, you need a Telegram account. If you don’t have one yet, create it at https://web.telegram.org/#/login .

If you already have a Telegram bot, proceed to connect it to the platform.

How to Create a Telegram Bot?

  1. Go to http://telegram.me/botfather . A chat with BotFather, the "father of bots," will open.
    BotFather provides a menu for creating and managing Telegram bots. Click the Start button at the bottom of the window to begin.

  1.  BotFather will send a list of commands for creating and managing bots. To create a new bot, send the command /newbot.

  1. BotFather will ask for your bot's name. Come up with a name (name) for your bot and send it. The name can use Latin or Cyrillic characters. You can change the name later.
    Example: We named our bot "Leeloo in Telegram."

  1. BotFather will then ask for a username for your bot. The username must end with "bot." You can use only Latin letters, numbers, and underscores.
    Come up with a username and send it in a message.
    Example: We gave our bot the username "LeelooAiTelegramBot."

The username must be at least 5 characters long and cannot be changed later.

  1. BotFather will send your bot’s token. Copy it.

Your Telegram bot is now created. Next, connect it to the platform.

How to Connect a Telegram Bot to the Platform?

  1. Go to the platform http://Leeloo.ai:
    1.1 Open Settings.
    1.2 Go to the Integrations section.
    1.3 Click the Messengers button.

  1. Click on Add New Connection.

  1. In the pop-up window, select the Telegram messenger.

4.1 In the new window:

  • Paste the copied token.

  • Click Connect.

Done! You can now use this bot as a communication channel in the lead generation tool settings.

What to Do if You See the Error “This Token is Invalid, Please Insert Another Token”?

  1. Make sure there are no spaces before or after the token. If there are, remove them and try inserting the token again.

  2. Check if any hidden special characters have been added to the token.

    • Open the developer tools (in Google Chrome, press Ctrl+Shift+I) and paste the token into the "Console" tab.

    • If a red dot appears alongside the token, it means a special character has been added. Delete it and paste the remaining text into the token field in the bot settings.

  3. If no red dot is present, generate a new token:

    • Open the chat with BotFather in Telegram.

    • Enter the command /token and send it.

    • Select your bot from the list, and BotFather will send a new token.

    • Copy it and try connecting again in the Telegram integration settings.

https://www.youtube.com/watch?v=qEZNxNMLZf4&embeds_referring_euri=https%3A%2F%2Fleelooai.atlassian.net%2F&source_ve_path=Mjg2NjY