apigen
apigen syncs this SDK with the official Telegram Bot API documentation page.
Usage
From repository root:
go run ./cmd/apigen
If you already downloaded the official HTML page, use it directly:
go run ./cmd/apigen -html /tmp/telegram_bot_api.html
Key files:
sdk_types.go
sdk_methods.go
sdk_unions.go
The bundled source snapshot is described by the machine-readable
api/telegram-bot-api.json manifest. Validate the snapshot identity and the
generated SDK with:
./scripts/check_generated.sh
Public Go API changes are checked separately. After intentionally changing the
exported API, review the diff and refresh its baseline with:
go run ./cmd/apicheck -update
go run ./cmd/apicheck