mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
fix: change user context at poll_answer
This commit is contained in:
parent
61cfb8e99a
commit
65184fb126
1 changed files with 1 additions and 0 deletions
|
|
@ -236,6 +236,7 @@ class Dispatcher(DataMixin, ContextInstanceMixin):
|
|||
if update.poll:
|
||||
return await self.poll_handlers.notify(update.poll)
|
||||
if update.poll_answer:
|
||||
types.User.set_current(update.poll_answer.user)
|
||||
return await self.poll_answer_handlers.notify(update.poll_answer)
|
||||
except Exception as e:
|
||||
err = await self.errors_handlers.notify(update, e)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue