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.question
is alias forself.event.question
self.options
is alias forself.event.options