Fix use of tg://join?invite= channels

This commit is contained in:
Lonami Exo 2019-05-12 13:44:09 +02:00
parent 5754ad589f
commit fefd6f0e6d

View File

@ -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