mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Merge pull request #273 from uburuntu/fix-copy-poll
fix: send_copy for poll: missed attribute getting
This commit is contained in:
commit
a00548c061
1 changed files with 1 additions and 1 deletions
|
|
@ -1626,7 +1626,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