Let’s create a Telegram bot that verifies that the user is subscribed to the required channels and generates the required notification if the verification is successful.
We will create the bot using the PuzzleBot Service according to the scheme described in this post: https://cpa.rip/en/youtube/youtube-shorts-traffic-monetizing/.
How to Create a Bot in Telegram?
- Log in to your Telegram account.
- Search for the @BotFather account and select it.
- Start the bot by clicking ‘Start’.
- To create a new bot, enter the ‘/new bot’ command and specify the bot’s name. You will then see the bot’s name in your contact list and the dialog window.
- After that, specify the bot’s title that users will see in the Telegram URL.
The title allows you to access the bot via the ‘t.me/[title]’ link or by mentioning it as ‘@[title ]’. You might want to consider the following requirements for the bot’s title:
- The title should not be occupied.
- The title should be from five to 32 characters long.
- The title requires Latin letters and numbers.
- Underscores are allowed.
- The title should end with the ‘bot’ word: ‘testbot’ or ‘test_bot’.
You can also add a description (/setdescription), a user pic (/setuserpic), or update the ‘About’ section (/setabouttext). To do this, open the BotFather menu. If you have multiple bots, you will first require to select the bot from the list.
Important: If you lose access to this account or delete it, you won’t be able to restore the bot and the bot’s followers list.
How to Link a Telegram Bot with the PuzzleBot Builder?
- Log in to PuzzleBot via your Telegram account.
- Click ‘Add Bot’.
- Copy the API token in the @BotFather Telegram bot.
API token represents a unique token that is required to link your bot with the Telegram API. It allows your bot to send and receive messages via Telegram. Be sure not to share this token with third parties as it provides full access to your bot.
- Insert the token into the field and click the ‘check mark’ icon.
- Once accounts are linked successfully, click on the bot and go to the ‘Builder’ tab.
The builder is user-friendly and allows you to send messages with text and clickable items, process and analyze incoming messages, create commands, respond to keywords, attach photos or files, add payment methods, enable integration with external services and API, create a store, and much more.
The scenario we created is as follows: when a user follows a link to the bot, they activate a command that requires them to subscribe to the channel. Once subscribed, the user clicks ‘I have subscribed’ and gets access to the subscription-related information. If the user has not subscribed but they want to obtain the information, then they receive a reminder to subscribe first.
PuzzleBot Tariffs
See the complete list of free and paid features in the PuzzleBot Service.