![]() We can set the privacy of the bot with /setprivacy. However, from a UX viewpoint, I recommend registering all available commands with BotFather. You can create many more commands that do work and not list them via BotFather. If you look up your bot now, you will see a command icon in the chatbox that shows you the available commands. It will show you how to input the commands with the format command1 - Description.įor my bot, I set the command bookmark - save interesting article URL. You can message the bot with the text /setcommands. We can further modify the bot by adding a description or setting the commands we wish the bot to know. Make sure to store this token safely, and certainly don’t share it with anyone else. This will also be the username you use for looking up the bot in Telegram’s search field.įatherBot will return a success message with your token to access the Telegram HTTP API. Therefore, I chose michiel_article_bot, as that username was not yet taken. The username must be unique and end in bot. Next, you will be prompted to input a username for the bot. To keep things simple, I named my bot ArticleBot. ![]() This name can be anything and doesn’t have to be unique. BotFather will ask you to choose a name for your both. Now we’ve found BotFather, let’s talk to him! You can start the conversation by typing /newbot. Click on the official BotFather, indicated with the white checkmark icon in the blue circle. The BotFather can be found on Telegram by searching for ‘BotFather’. The API token is the most important step, as this allows you to run the code that can perform tasks for the bot. It helps you with registering bots, changing the bot description, adding commands, and providing you with the API token for your bot. The BotFather is a bot itself that makes your life much easier. Bot Registration with first step towards our very own Telegram bot is registering the bot with the BotFather.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |