apigen

command
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2026 License: MIT Imports: 13 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL