banner
阿道

阿道

阿道博客

How to Create a Bot on Telegram and Related Configuration

#

Preparation#

  • Access to Telegram is normal

Registration#

  • Open Telegram and search for “BotFather”
  • In the message window, type the following command

/newbot

Displays: Alright, a new bot. How are we going to call it?

Please choose a name for your bot.

  • Enter the bot name

Here we enter any name

It will prompt: Good. Now let's choose a username for your bot. It must end in bot. Like this, for example: TetrisBot or tetris_bot.

  • The name format must be: TetrisBot or tetris_bot

Enter share45_bot can be named as needed

  • If it displays: Sorry, this username is invalid. you need to change it

  • Until it displays: Done! Congratulations on your new bot. You will find it at t.me/share45_bot. You can now add a description, about section and profile picture for your bot, see /help for a list of commands. By the way, when you've finished creating your cool bot, ping our Bot Support if you want a better username for it. Just make sure the bot is fully operational before you do this.

Use this token to access the HTTP API:

xxxxxxxxxxxx This is the API key (important)

Keep your token secure and store it safely, it can be used by anyone to control your bot.

For a description of the Bot API, see this page:

https://core.telegram.org/bots/api

Snipaste_2019-06-27_19-07-36

Bot Information Configuration#

  • Here we continue to input messages to edit bot information:

/mybots

  • A list of the bots we created will appear, here we can directly click on the bot name we need to edit.

It will display six options:

API Token: Displays the API key
Edit Bot: Edit the bot
Bot Settings: Bot settings
Payments: Payments
Delete Bot: Delete the bot
Back...ots List: Return to the previous list

  • We mainly talk about Edit Bot, clicking this button will also display six buttons:

Edit Name: Bot name
Edit Description: Bot description
Edit About: Bot introduction
Edit Botpic: Bot avatar
Edit Commands: Bot commands
Back to bot: Return

  • Here I mainly talk about: Edit Commands click the command

Displays: OK. Send me a list of commands for your bot. Please use this format:

command1 - Description
command2 - Another description

  • Here the command settings need to be combined with the future bot usage, I will set it up with the RSS subscription bot I will talk about later.

/rss Displays the current RSS subscription address Add raw to display the address link
/sub Subscribe to an RSS: /sub Subscribe website address
/unsub Unsubscribe from an RSS: /unsub Unsubscribe website address
/unsubbthis Use this command to reply to the RSS message you want to unsubscribe from to unsubscribe
/export Export as OPML

Final Check#

Search for our bot name in the search box, enter the channel

You will see the relevant information we set up earlier

In the message input box, type “/” to see the commands we set up earlier

Snipaste_2019-06-25_18-58-10

If there are any contents that need to be modified, you can go to BotFather for further settings

Thus, our Telegram bot has been created and configured.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.