0x111 / telegram-rss-bot

RSS bot for telegram written in Go
MIT License
41 stars 21 forks source link

Implement /start #12

Open jtagcat opened 3 years ago

jtagcat commented 3 years ago

https://github.com/0x111/telegram-rss-bot/blob/master/commands/command.go

As a manpage.

0x111 commented 3 years ago

Could you elaborate what do you mean with a /start command? What are the benefits and added value in this case? (I am really interested)

jtagcat commented 3 years ago

Right now if you set up the bot, giving this to an user, you don't get a textbox. You get a button to send /start. This initiates comms with the bot, authorizes the bot to send the user messages.

/start usually acts as a 'hey bot pls send the user a manual'. It should be on the lines of what you expect something --help to output on CLI.

If you send any message to the bot currently, it just sits quietly. You have to refer, back to the docs for this reason (you could get the docs-ish right in tg).

0x111 commented 3 years ago

I will look into this as soon as I can. So the basics would be, on a /start the bot would be initiated with that specific user, automatically sending a help text about the possible commands that the user can use with the bot. Sounds reasonable and helpful. Thanks