1 parent 1f8f313 commit 372bbabCopy full SHA for 372bbab
2 files changed
pyrogram/client/ext/base_client.py
@@ -103,6 +103,9 @@ def send(self, data: Object, retries: int = Session.MAX_RETRIES, timeout: float
103
def resolve_peer(self, peer_id: int or str):
104
pass
105
106
+ def fetch_peers(self, entities):
107
+ pass
108
+
109
def add_handler(self, handler, group: int = 0) -> tuple:
110
111
pyrogram/client/methods/chats/get_chat.py
@@ -56,6 +56,8 @@ def get_chat(self,
56
if isinstance(r, types.ChatInvite):
57
raise ValueError("You haven't joined \"t.me/joinchat/{}\" yet".format(h))
58
59
+ self.fetch_peers([r.chat])
60
61
if isinstance(r.chat, types.Chat):
62
chat_id = -r.chat.id
63
0 commit comments