mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-11 18:01:04 +00:00
623 B
623 B
PreCheckoutQueryHandler
There is base class for callback query handlers.
Simple usage:
from aiogram.handlers import PreCheckoutQueryHandler
...
@router.pre_checkout_query()
class MyHandler(PreCheckoutQueryHandler):
async def handle(self) -> Any: ...
Extension
This base handler is subclass of BaseHandler with some extensions:
self.from_useris alias forself.event.from_user