Connecting a Telegram bot
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?
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.
BotFather will send a list of commands for creating and managing bots. To create a new bot, send the command
/newbot
.
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."
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.
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?
Go to the platform http://Leeloo.ai:
1.1 Open Settings.
1.2 Go to the Integrations section.
1.3 Click the Messengers button.
Click on Add New Connection.
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”?
Make sure there are no spaces before or after the token. If there are, remove them and try inserting the token again.
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.
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.