From fefd6f0e6dc761713d721cc3eb8dd54dfccbc900 Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Sun, 12 May 2019 13:44:09 +0200 Subject: [PATCH] Fix use of tg://join?invite= channels --- telethon/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telethon/utils.py b/telethon/utils.py index e8e71af5..4afad7cf 100644 --- a/telethon/utils.py +++ b/telethon/utils.py @@ -53,7 +53,7 @@ USERNAME_RE = re.compile( r'@|(?:https?://)?(?:www\.)?(?:telegram\.(?:me|dog)|t\.me)/(joinchat/)?' ) TG_JOIN_RE = re.compile( - r'tg://(join)?invite=' + r'tg://(join)\?invite=' ) # The only shorter-than-five-characters usernames are those used for some