From 1da39efa2e5aaf87afbbb92bcbd14d12704ac6e6 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Sat, 17 Mar 2018 19:13:15 +0100 Subject: [PATCH] Update invite link regex --- pyrogram/client/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index d71534ed..ab0d4ab7 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -117,7 +117,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/)?(.+)$") DIALOGS_AT_ONCE = 100 UPDATES_WORKERS = 2 DOWNLOAD_WORKERS = 1