A chatbot is an automated multifunctional assistant, that can receive send and send triggered messages, and with SendPulse, your bot can save information as variables for future usage.
Follow the step-by-step instruction to create your first chatbot for Telegram messenger or connect an existing one to SendPulse for further configuration.
If you already have a bot, skip the first paragraph and take a look at the next section.
How to Create a New Bot for Telegram
Open Telegram messenger, sign in to your account or create a new one.
Step 1. Enter @Botfather in the search tab and choose this bot.
Note, official Telegram bots have a blue checkmark beside their name
Click “Start” to activate BotFather bot.
In response, you receive a list of commands to manage bots.
Step 2. Choose or type the
/newbot command and send it.
Step 3. Choose a name for your bot — your subscribers will see it in the conversation. And choose a username for your bot — the bot can be found by its username in searches. The username must be unique and end with the word “bot.”
After you choose a suitable name for your bot — the bot is created. You will receive a message with a link to your bot t.me/<bot_username>, recommendations to set up a profile picture, description, and a list of commands to manage your new bot.
To connect a bot to SendPulse you need a token. Copy your token value and find more information about connecting your bot to SendPulse in the last section of this article.
How to Find a Token for an Existing Bot
Step 1. Go to the @BotFather bot and send the command
You will see buttons with any bots that you have created.
Step 2. Choose the one you need a token for so you can connect it with Sendpulse.
Copy the token value.
How to Connect a Bot to SendPulse
Navigate to the “Chatbots” section in your SendPulse account. If it’s your first time visiting this page and you have not connected any chatbots — click the “Connect channels” button. If you have already connected bots before — navigate to “Main” tab and click the “Manage bots” button.
Then choose the Telegram and click on the “Enable Telegram” button.
Enter your token from the necessary bot and click “Connect.”
In the next window click the “Subscribe” button.
You will be redirected to the Telegram app, click on the “Start” button and you will be subscribed to your bot.
Congratulations! You have successfully added your chatbot to SendPulse.
Note, any existing subscribers are not imported to your SendPulse chatbot auditory. After you connect your bot you can collect subscribers with a website widget or share the link to your bot t.me/<username> directly.
Last Updated: 27.11.2020