Intitial release
This commit is contained in:
parent
299038fbc7
commit
fa8caa5116
21 changed files with 1234 additions and 0 deletions
6
utils/telegram_token_validator.py
Normal file
6
utils/telegram_token_validator.py
Normal file
|
@ -0,0 +1,6 @@
|
|||
import re
|
||||
|
||||
def validate_telegram_token(token: str) -> bool:
|
||||
# Simple validation - check if it matches the pattern \d{8,10}:[A-Za-z0-9_-]{35}
|
||||
pattern = r"\d{8,10}:[A-Za-z0-9_-]{35}"
|
||||
return bool(re.match(pattern, token))
|
Loading…
Add table
Add a link
Reference in a new issue