pyTelegramBotAPI
pyTelegramBotAPI copied to clipboard
Handlers and Middlewares processing union
Description
Call for handlers now union in a single function for future extension. Plus minor fixes in storages.
Checklist:
- [x] My changes won't break backward compatibility
- This pull request will:
- help to #1704 (by making it possible to get the result of a handler without middlewares;
- Improve the readability of code
@Badiboy @coder2020official I think by #1706 we can deprecate middleware functions, and remove it in next major version. You can open a draft PR to start deprecating middleware part. if you still know a usecase of middlewares after merging #1706 , I would happy to know.
Middleware functions are another way of using middlewares. We are not going to deprecate it for now