From 674b7d68a53e55e391cc09005994ca0a839b8f25 Mon Sep 17 00:00:00 2001 From: Danny Lin Date: Mon, 24 Jan 2022 04:17:22 -0800 Subject: [PATCH] Add support for new invite link format (#3213) --- telethon/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telethon/utils.py b/telethon/utils.py index 7d058518..ac5db1c1 100644 --- a/telethon/utils.py +++ b/telethon/utils.py @@ -54,7 +54,7 @@ mimetypes.add_type('audio/flac', '.flac') mimetypes.add_type('application/x-tgsticker', '.tgs') USERNAME_RE = re.compile( - r'@|(?:https?://)?(?:www\.)?(?:telegram\.(?:me|dog)|t\.me)/(@|joinchat/)?' + r'@|(?:https?://)?(?:www\.)?(?:telegram\.(?:me|dog)|t\.me)/(@|\+|joinchat/)?' ) TG_JOIN_RE = re.compile( r'tg://(join)\?invite='