go-telegram-bot-api / telegram-bot-api

Golang bindings for the Telegram Bot API
https://go-telegram-bot-api.dev
MIT License
5.62k stars 868 forks source link

Discard the Update If some other update is processing #578

Open Akhilesh53 opened 1 year ago

Akhilesh53 commented 1 year ago

Ho w we can discard a command if some other command is in process by the bot?

temamagic commented 1 year ago

This is logic that is based on your application, please do not create an issue that is not related to the library.

If you need to reject all commands while one is in progress, you should use the state stored in the database or memory