Go client for the Telegram Bot API, generated from the official spec. This project follows an API-first approach, using an OpenAPI specification to ensure consistency and correctness.
Package docs: https://pkg.go.dev/github.com/tgbotkit/client
| Package Version | API Version | API Release Date |
|---|---|---|
| latest, 0.5.0 | 9.5 | March 1, 2026 |
| <= 0.3.2 | 9.3 | December 31, 2025 |
| <= 0.2.0 | 9.2 | August 15, 2025 |
This client is generated using:
- https://github.com/metalagman/tgbotspec to fetch/build the OpenAPI spec
- https://github.com/oapi-codegen/oapi-codegen to generate the Go client
Generation is wired via go generate in generate.go and uses cfg.yaml.
See example_test.go for a minimal usage example.
This project is licensed under the MIT License. See the LICENSE file for details.