mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
fix: send_copy for poll: missed attribute getting
This commit is contained in:
parent
9d94ac62c9
commit
30a17413f0
1 changed files with 1 additions and 1 deletions
|
|
@ -1654,7 +1654,7 @@ class Message(base.TelegramObject):
|
|||
elif self.poll:
|
||||
kwargs.pop("parse_mode")
|
||||
return await self.bot.send_poll(
|
||||
question=self.poll.question, options=self.poll.options, **kwargs
|
||||
question=self.poll.question, options=[option.text for option in self.poll.options], **kwargs
|
||||
)
|
||||
else:
|
||||
raise TypeError("This type of message can't be copied.")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue