mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 20:14:51 +00:00
Add missing await (#403)
await client.send_poll(...) was returning a coroutine instead of the Message object
This commit is contained in:
parent
db4a00da36
commit
e4028fa6a7
1 changed files with 1 additions and 1 deletions
|
|
@ -123,7 +123,7 @@ class SendPoll(BaseClient):
|
|||
|
||||
for i in r.updates:
|
||||
if isinstance(i, (types.UpdateNewMessage, types.UpdateNewChannelMessage, types.UpdateNewScheduledMessage)):
|
||||
return pyrogram.Message._parse(
|
||||
return await pyrogram.Message._parse(
|
||||
self, i.message,
|
||||
{i.id: i for i in r.users},
|
||||
{i.id: i for i in r.chats},
|
||||
|
|
|
|||
Loading…
Reference in a new issue