mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-10 19:46:36 +03:00
parent
65407fc899
commit
2826c942c0
|
@ -60,14 +60,8 @@ TG_JOIN_RE = re.compile(
|
|||
r'tg://(join)\?invite='
|
||||
)
|
||||
|
||||
# The only shorter-than-five-characters usernames are those used for some
|
||||
# special, very well known bots. This list may be incomplete though:
|
||||
# "[...] @gif, @vid, @pic, @bing, @wiki, @imdb and @bold [...]"
|
||||
#
|
||||
# See https://telegram.org/blog/inline-bots#how-does-it-work
|
||||
VALID_USERNAME_RE = re.compile(
|
||||
r'^([a-z](?:(?!__)\w){3,30}[a-z\d]'
|
||||
r'|gif|vid|pic|bing|wiki|imdb|bold|vote|like|coub)$',
|
||||
r'^[a-z](?:(?!__)\w){1,30}[a-z\d]$',
|
||||
re.IGNORECASE
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user