

The push method uses a webhook ( /setwebhook method) to your script which is called every time a user sends a message to your bot. Using the pull method you have to call the /getupdates every once in a while to check if there are new messages send to your bot. There are two general methods for the telegram bots for interaction: a push and a pull method.

With the gained token you now can send a test message by calling the website Use this token to access the HTTP API: xxx:xxx Way, when you've finished creating your cool bot, ping our Bot Support Profile picture for your bot, see /help for a list of commands. You can now add a description, about section and You must use the bot token to communicate with the Telegram, so make sure you write it down.ĭone! Congratulations on your new bot. If your desired username is taken or not available, try again with another name.įinally your bot is created and the following message is shown. Like this, for example: TetrisBot or tetris_bot. Now let's choose a username for your bot. After that BotFather will ask for a username for your bot: How are we going to call it? Please choose a nameĮnter a name for your bot, which can be anything, and send it. Open a chat with in Telegram and click the /start command.Īfter you get a list of commands Select the command /newbot to get this Message:Īlright, a new bot.

Since the Documentation for telegram-bot is new, you may need to create initial versions of those related topics. It should also mention any large subjects within telegram-bot, and link out to the related topics. This section provides an overview of what telegram-bot is, and why a developer might want to use it.
