Telegram: how to show welcome message for new connection bot

I create a new bot in telegram bot and take steps like here: -

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

      

But now, when I need a new user, I have to show them a welcome message.

How to do it?

+3


source to share


3 answers


Use commands /setdescription

and /setabouttext

@BotFather



+4


source


You need to implement the command /start

in your bot implementation - set a welcome message.

And you must describe this command in the chat with @BotFather via /setcommands

for your bot.



After that, when the user adds your bot, the command /start

will run automatically and he will see the message you entered.

0


source


You have to send these commands to @BotFather

/setdescription

      

then send your bot id like:

@example_bot 

      

and send a welcome message

Welcome to my bot

      

0


source







All Articles