ChosenInlineResultHandler¶
There is base class for chosen inline result handlers.
Simple usage¶
from aiogram.handlers import ChosenInlineResultHandler
...
@router.chosen_inline_result()
class MyHandler(ChosenInlineResultHandler):
async def handle(self) -> Any: ...
Extension¶
This base handler is subclass of BaseHandler with some extensions:
self.chat
is alias forself.event.chat
self.from_user
is alias forself.event.from_user