mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 09:26:37 +03:00
Recognize invite links with plus sign prefix
This commit is contained in:
parent
299eceb6eb
commit
06536cfb91
|
@ -54,7 +54,7 @@ mimetypes.add_type('audio/flac', '.flac')
|
||||||
mimetypes.add_type('application/x-tgsticker', '.tgs')
|
mimetypes.add_type('application/x-tgsticker', '.tgs')
|
||||||
|
|
||||||
USERNAME_RE = re.compile(
|
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(
|
TG_JOIN_RE = re.compile(
|
||||||
r'tg://(join)\?invite='
|
r'tg://(join)\?invite='
|
||||||
|
|
Loading…
Reference in New Issue
Block a user