mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-02-16 19:41:07 +03:00
Fix __ is invalid in usernames (cc @Kyle2142)
This commit is contained in:
parent
b65cbd8647
commit
4d1272f1d2
|
@ -44,7 +44,7 @@ USERNAME_RE = re.compile(
|
|||
#
|
||||
# See https://telegram.org/blog/inline-bots#how-does-it-work
|
||||
VALID_USERNAME_RE = re.compile(
|
||||
r'^([a-z][\w\d]{3,30}[a-z\d]'
|
||||
r'^([a-z]((?!__)[\w\d]){3,30}[a-z\d]'
|
||||
r'|gif|vid|pic|bing|wiki|imdb|bold|vote|like|coub|ya)$',
|
||||
re.IGNORECASE
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user