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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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