aiogram/docs/dispatcher/class_based_handlers/shipping_query.md
mpa 4124770b0e refactor(handler): rename observers
Rename observers but with backward compatibility, relevant documentation
2020-05-10 03:02:31 +04:00

595 B

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