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 CallbackQueryHandler
...
@router.callback_query_handler()
@router.callback_query()
class MyHandler(CallbackQueryHandler):
async def handle(self) -> Any: ...
@ -26,4 +26,4 @@ This base handler is subclass of [BaseHandler](basics.md#basehandler) with some
- [BaseHandler](basics.md#basehandler)
- [CallbackQuery](../../api/types/callback_query.md)
- [Router.callback_query_handler](../router.md#callback-query)
- [Router.callback_query](../router.md#callback-query)