Skip to content

Commit

Permalink
Merge pull request #2062 from alexsuhor/patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
Badiboy authored Oct 18, 2023
2 parents b4af88c + c2869fc commit 9f887e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ class Middleware(BaseMiddleware):
if exception: # check for exception
print(exception)
```
Class-based middleware should have to functions: post and pre process.
Class-based middleware should have two functions: post and pre process.
So, as you can see, class-based middlewares work before and after handler execution.
For more, check out in [examples](https://github.com/eternnoir/pyTelegramBotAPI/tree/master/examples/middleware/class_based)

Expand Down

0 comments on commit 9f887e7

Please sign in to comment.