ShippingQueryHandler

There is base class for callback query handlers.

Simple usage:

from aiogram.handlers import ShippingQueryHandler

...

@router.shipping_query()
class MyHandler(ShippingQueryHandler):
    async def handle(self) -> Any: ...

Extension

This base handler is subclass of BaseHandler with some extensions:

  • self.from_user is alias for self.event.from_user