Add handler for poll answer

This commit is contained in:
Alex Root Junior 2020-01-27 23:55:45 +02:00
parent 0a1909f0f4
commit 350a670bdf
3 changed files with 10 additions and 0 deletions

View file

@ -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