New bot creation
Go to the @BotFather app on Telegram.
Send /newbot
, to start creating a new Bot and setting its name and username.
Take note of the bot token
.
Join groups permission
To allow the bot to join Telegram groups, use the /setjoingroups
command in @BotFather:
Privacy
Now you need to choose how much the bot will be able to read from the chats. Send /setprivacy
command to @BotFather, and select your bot privacy:
- enable: to handle only
/
commands handling - disable: to allow the bot to read all messages sent to the chat