diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index a9aa2e9c..4cef260d 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -118,7 +118,7 @@ class Client: Thread pool size for handling incoming updates. Defaults to 4. """ - INVITE_LINK_RE = re.compile(r"^(?:https?://)?(?:t\.me/joinchat/)?(.+)$") + INVITE_LINK_RE = re.compile(r"^(?:https?://)?(?:t\.me/joinchat/)?([\w-]+)$") DIALOGS_AT_ONCE = 100 UPDATES_WORKERS = 2 DOWNLOAD_WORKERS = 1