mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 01:16:35 +03:00
parent
65407fc899
commit
2826c942c0
|
@ -60,14 +60,8 @@ 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
|
|
||||||
# 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(
|
VALID_USERNAME_RE = re.compile(
|
||||||
r'^([a-z](?:(?!__)\w){3,30}[a-z\d]'
|
r'^[a-z](?:(?!__)\w){1,30}[a-z\d]$',
|
||||||
r'|gif|vid|pic|bing|wiki|imdb|bold|vote|like|coub)$',
|
|
||||||
re.IGNORECASE
|
re.IGNORECASE
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user