mirror of
https://github.com/pyrogram/pyrogram
synced 2025-09-05 16:55:20 +00:00
Merge branch 'develop' into asyncio
# Conflicts: # pyrogram/__init__.py
This commit is contained in:
@@ -31,7 +31,7 @@ __copyright__ = "Copyright (C) 2017-2018 Dan Tès <https://github.com/delivrance
|
||||
"e" if sys.getfilesystemencoding() != "utf-8" else "\xe8"
|
||||
)
|
||||
__license__ = "GNU Lesser General Public License v3 or later (LGPLv3+)"
|
||||
__version__ = "0.10.2.asyncio"
|
||||
__version__ = "0.10.3.asyncio"
|
||||
|
||||
from .api.errors import Error
|
||||
from .client.types import (
|
||||
|
@@ -102,6 +102,9 @@ class BaseClient:
|
||||
def resolve_peer(self, peer_id: int or str):
|
||||
pass
|
||||
|
||||
def fetch_peers(self, entities):
|
||||
pass
|
||||
|
||||
def add_handler(self, handler, group: int = 0) -> tuple:
|
||||
pass
|
||||
|
||||
|
@@ -56,6 +56,8 @@ class GetChat(BaseClient):
|
||||
if isinstance(r, types.ChatInvite):
|
||||
raise ValueError("You haven't joined \"t.me/joinchat/{}\" yet".format(h))
|
||||
|
||||
self.fetch_peers([r.chat])
|
||||
|
||||
if isinstance(r.chat, types.Chat):
|
||||
chat_id = -r.chat.id
|
||||
|
||||
|
Reference in New Issue
Block a user