reo7sp / tgbot-cpp

C++ library for Telegram bot API

Home Page:http://reo7sp.github.io/tgbot-cpp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Scenes and middleware

Sanehhhhek opened this issue · 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)