mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-11 18:01:04 +00:00
Add handler for poll answer
This commit is contained in:
parent
0a1909f0f4
commit
350a670bdf
3 changed files with 10 additions and 0 deletions
|
|
@ -109,6 +109,13 @@ async def poll_handler(poll: types.Poll) -> Any: pass
|
|||
```
|
||||
Is useful for handling [polls](../api/types/poll.md)
|
||||
|
||||
### Poll answer
|
||||
```python3
|
||||
@router.poll_answer_handler()
|
||||
async def poll_answer_handler(poll_answer: types.PollAnswer) -> Any: pass
|
||||
```
|
||||
Is useful for handling [polls answers](../api/types/poll_answer.md)
|
||||
|
||||
|
||||
## Nested routers
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue