tgbot-cpp icon indicating copy to clipboard operation
tgbot-cpp copied to clipboard

Scenes and middleware

Open Sanehhhhek opened this issue 3 years ago • 0 comments

Hello, I did not see in your project the implementation of scenes such as in telegraf js, have you ever thought about adding such a module to your project?I started writing it, but I was faced with the impossibility of adding middleware to the object, which is also very useful when receiving actions from the bot user, based on middleware I would be able to localize scenes, and much more like bot authorization, etc. Middleware is a lambda function that, when receiving an update, performs any actions and skips it further or not. I tried to explain my thought, if you are intrigued by my idea, I would be glad to see the implementation of middleware in your project. I translate from Russian I hope you understand me)

Sanehhhhek avatar Apr 17 '23 13:04 Sanehhhhek