mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-06 07:14:50 +00:00
Add missing await
This commit is contained in:
parent
63cb4b412e
commit
d72754be1e
2 changed files with 3 additions and 3 deletions
|
|
@ -73,4 +73,4 @@ class GetChat(BaseClient):
|
||||||
else:
|
else:
|
||||||
r = await self.send(functions.messages.GetFullChat(peer.chat_id))
|
r = await self.send(functions.messages.GetFullChat(peer.chat_id))
|
||||||
|
|
||||||
return pyrogram.Chat._parse_full(self, r)
|
return await pyrogram.Chat._parse_full(self, r)
|
||||||
|
|
|
||||||
|
|
@ -174,7 +174,7 @@ class Chat(PyrogramType):
|
||||||
return Chat._parse_channel_chat(client, chats[peer.channel_id])
|
return Chat._parse_channel_chat(client, chats[peer.channel_id])
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _parse_full(client, chat_full: types.messages.ChatFull or types.UserFull) -> "Chat":
|
async def _parse_full(client, chat_full: types.messages.ChatFull or types.UserFull) -> "Chat":
|
||||||
if isinstance(chat_full, types.UserFull):
|
if isinstance(chat_full, types.UserFull):
|
||||||
parsed_chat = Chat._parse_user_chat(client, chat_full.user)
|
parsed_chat = Chat._parse_user_chat(client, chat_full.user)
|
||||||
parsed_chat.description = chat_full.about
|
parsed_chat.description = chat_full.about
|
||||||
|
|
@ -200,7 +200,7 @@ class Chat(PyrogramType):
|
||||||
parsed_chat.sticker_set_name = full_chat.stickerset
|
parsed_chat.sticker_set_name = full_chat.stickerset
|
||||||
|
|
||||||
if full_chat.pinned_msg_id:
|
if full_chat.pinned_msg_id:
|
||||||
parsed_chat.pinned_message = client.get_messages(
|
parsed_chat.pinned_message = await client.get_messages(
|
||||||
parsed_chat.id,
|
parsed_chat.id,
|
||||||
message_ids=full_chat.pinned_msg_id
|
message_ids=full_chat.pinned_msg_id
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue