pyrofork: fix error when copying poll messages

Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
wulan17 2024-07-02 15:43:04 +07:00
parent 6bad69f04f
commit a95517fa19
No known key found for this signature in database
GPG key ID: 318CD6CD3A6AC0A5

View file

@ -4517,7 +4517,12 @@ class Message(Object, Update):
return await self._client.send_poll(
chat_id,
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,
message_thread_id=message_thread_id,
schedule_date=schedule_date