Automated scraper for the Telegram Bot API. Parses the official docs and stores structured data as JSON — used by laraXgram/laraquest to generate PHP code.
- GitHub Actions fetches
core.telegram.org/bots/api - Parses all methods and types from the HTML
- Saves
telegram-api.jsonand commits it to this repo - Laraquest fetches the JSON from raw content and generates PHP files
{
"scraped_at": "2026-06-07T00:00:00+00:00",
"source": "https://core.telegram.org/bots/api",
"methods": {
"sendMessage": {
"name": "sendMessage",
"description": "...",
"parameters": [
{ "name": "chat_id", "type": "Integer or String", "required": true, "description": "..." }
]
}
},
"types": {
"Message": {
"name": "Message",
"description": "...",
"fields": [
{ "name": "message_id", "type": "Integer", "description": "..." }
]
}
}
}Runs automatically every Sunday at 00:00 UTC via GitHub Actions.
https://raw.githubusercontent.com/laraXgram/telegram-api-data/main/telegram-api.json
php bin/scrape.phpRequires PHP 8.1+ with ext-curl and ext-dom.