docs: clarify Telegram token regex constraint
This commit is contained in:
parent
cd77c7100c
commit
ceefe36756
@ -47,7 +47,8 @@ _AUTH_HEADER_RE = re.compile(
|
|||||||
re.IGNORECASE,
|
re.IGNORECASE,
|
||||||
)
|
)
|
||||||
|
|
||||||
# Telegram bot tokens: bot<digits>:<token> or <digits>:<alphanum>
|
# Telegram bot tokens: bot<digits>:<token> or <digits>:<token>,
|
||||||
|
# where token part is restricted to [-A-Za-z0-9_] and length >= 30
|
||||||
_TELEGRAM_RE = re.compile(
|
_TELEGRAM_RE = re.compile(
|
||||||
r"(bot)?(\d{8,}):([-A-Za-z0-9_]{30,})",
|
r"(bot)?(\d{8,}):([-A-Za-z0-9_]{30,})",
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user