refactor(handler): rename observers

Rename observers but with backward compatibility, relevant documentation
This commit is contained in:
mpa 2020-05-10 03:02:31 +04:00
parent b097680f3c
commit 4124770b0e
21 changed files with 297 additions and 110 deletions

View file

@ -8,7 +8,7 @@ from aiogram.handlers import PollHandler
...
@router.poll_handler()
@router.poll()
class MyHandler(PollHandler):
async def handle(self) -> Any: ...
@ -25,4 +25,4 @@ This base handler is subclass of [BaseHandler](basics.md#basehandler) with some
- [BaseHandler](basics.md#basehandler)
- [Poll](../../api/types/poll.md)
- [Router.poll_handler](../router.md#poll)
- [Router.poll](../router.md#poll)