mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-11 18:01:04 +00:00
558 B
558 B
PollHandler
There is base class for poll handlers.
Simple usage:
from aiogram.handlers import PollHandler
...
@router.poll()
class MyHandler(PollHandler):
async def handle(self) -> Any: ...
Extension
This base handler is subclass of BaseHandler with some extensions:
self.questionis alias forself.event.questionself.optionsis alias forself.event.options