Datatypes

Telegram bot token

ID telegram_bot_token

DatatypeNot PIIidentifierDraft

This record is a draft: it has not been reviewed yet and may be incomplete or wrong. Do not rely on it for compliance decisions. Help improve it (see CONTRIBUTING.md).

Token that authorizes a bot in the Telegram Bot API: the numeric bot ID, a colon and a secret that starts with A. Telegram documents the format only by example, so the regexp accepts the length of the documented samples (34 characters after the colon) and the length that the gitleaks secret scanner checks (35).

Parent datatype
API key or client secret api_key
Categories
Secrets and credentials (passwords, keys, tokens)
Countries
Global (not tied to a country)
Languages
Common to most languages
Quality
85/100 · missing: mapping (Wikidata, Schema.org, ...), translation
Metacrafter rules
no detection rule yet
Supported by tools
detect-secrets, Gitleaks, Semgrep, TruffleHog

Regular expression

^[0-9]{5,16}:A[A-Za-z0-9_-]{33,34}$

Python re syntax.

Examples

ValueDescription
123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11Sample token from the Telegram Bot API documentation
4839574812:AAFD39kkdpWt3ywyRZergyOLMaJhac60qcSample token from the Telegram bot tutorial
123456:ABC invalidSecret part too short

Sources

Use this record