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
| Value | Description |
|---|---|
| 123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11 | Sample token from the Telegram Bot API documentation |
| 4839574812:AAFD39kkdpWt3ywyRZergyOLMaJhac60qc | Sample token from the Telegram bot tutorial |
| 123456:ABC invalid | Secret part too short |
Sources
- doc: https://core.telegram.org/bots/api#authorizing-your-bot
- doc: https://core.telegram.org/bots/tutorial
- other: https://github.com/gitleaks/gitleaks/blob/master/config/gitleaks.toml
Use this record
- Page URL:
http://registry.apicrafter.io/datatype/telegram_bot_token - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/any/secrets/telegram_bot_token.yamlon GitHub