mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-04 22:34:52 +00:00
pyrofork: fix error when copying poll messages
Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
parent
6bad69f04f
commit
a95517fa19
1 changed files with 6 additions and 1 deletions
|
|
@ -4517,7 +4517,12 @@ class Message(Object, Update):
|
||||||
return await self._client.send_poll(
|
return await self._client.send_poll(
|
||||||
chat_id,
|
chat_id,
|
||||||
question=self.poll.question,
|
question=self.poll.question,
|
||||||
options=[opt.text for opt in self.poll.options],
|
options=[
|
||||||
|
types.PollOption(
|
||||||
|
text=opt.text,
|
||||||
|
entities=opt.entities
|
||||||
|
) for opt in self.poll.options
|
||||||
|
],
|
||||||
disable_notification=disable_notification,
|
disable_notification=disable_notification,
|
||||||
message_thread_id=message_thread_id,
|
message_thread_id=message_thread_id,
|
||||||
schedule_date=schedule_date
|
schedule_date=schedule_date
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue