mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 02:03:04 +00:00
25 lines
527 B
ReStructuredText
25 lines
527 B
ReStructuredText
====================
|
|
ShippingQueryHandler
|
|
====================
|
|
|
|
There is base class for callback query handlers.
|
|
|
|
Simple usage
|
|
============
|
|
|
|
.. code-block:: python
|
|
|
|
from aiogram.handlers import ShippingQueryHandler
|
|
|
|
...
|
|
|
|
@router.shipping_query()
|
|
class MyHandler(ShippingQueryHandler):
|
|
async def handle(self) -> Any: ...
|
|
|
|
Extension
|
|
=========
|
|
|
|
This base handler is subclass of :ref:`BaseHandler <cbh-base-handler>` with some extensions:
|
|
|
|
- :code:`self.from_user` is alias for :code:`self.event.from_user`
|