kmfknexus.blogg.se

Telegram bot example
Telegram bot example












telegram bot example

We can also provide descriptions and other information for our bot.

telegram bot example

Note that the username for the bot should end with “bot” as directed by telegram. Next, we need to provide our bot with a name/alias and a unique username. BotFather Settings STEP – 5: Setting Up Basic Functionality and API Key Generation Next, we need to click the START button provided at the bottom of the BotFather page taking us to another screen containing pre-defined commands for the new bot like starting up a new bot using /newbot command, naming our bot, setting the description, setting the profile picture, and so on. BotFather Search STEP – 4: Setting Up Basic Functionality This pops up a new screen containing the basic settings to fire up a new bot for our application. Before connecting our application to our code, we need to set up the basic bot functionality through the desktop application itself and obtain the unique API key for connection.Īfter opening the application on our desktop, search for BotFather in the application search tab. Our code gets access to the telegram application using an API key. Next, we need to start up our desktop application and configure it so that our custom code could be accessed it. STEP – 3: Setting up our Telegram Desktop Application and Spinning up a new Bot














Telegram bot example