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