pyTelegramBotAPI icon indicating copy to clipboard operation
pyTelegramBotAPI copied to clipboard

Handlers and Middlewares processing union

Open Badiboy opened this issue 3 years ago • 3 comments

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

Badiboy avatar Sep 17 '22 08:09 Badiboy

  • 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

coder2020official avatar Sep 17 '22 09:09 coder2020official

@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.

byehack avatar Sep 17 '22 18:09 byehack

Middleware functions are another way of using middlewares. We are not going to deprecate it for now

coder2020official avatar Sep 17 '22 19:09 coder2020official