Skip to main content

Binary distribution for tgbotspec

Project description

tgbotspec

Go Report Card golangci-lint tests codecov version license

tgbotspec turns the official Telegram Bot API reference into an OpenAPI 3.0 specification. Use the generated file with SDK generators, API explorers, or your own tooling.

Features

  • Methods: all Telegram Bot API methods are included as OpenAPI paths with proper HTTP verbs and parameters.
  • Objects: all Bot API objects are generated as reusable component schemas.
  • Any‑of/one‑of types: union types from the docs are modeled with OpenAPI anyOf/oneOf (and refs) so generators can produce correct sum types.
  • Authorization: bearer token (TelegramBotToken) with server URL https://api.telegram.org/bot{botToken}.

Examples

Run in Docker

You can run the tool in a container and capture the generated OpenAPI to a file.

  • Using the published image from GHCR:
docker run --rm ghcr.io/metalagman/tgbotspec:latest > openapi.yaml

Run from binary

Download the latest release for your platform from GitHub Releases and run:

./tgbotspec -o openapi.yaml

Build and run locally

All commands require Go 1.26.4+ when building locally.

  • (Recommended) Add the CLI as a tool to your project and run it:
go get -tool github.com/metalagman/tgbotspec/cmd/tgbotspec@latest
go tool tgbotspec -o openapi.yaml
  • Install the CLI into your GOPATH/bin and run it:
go install github.com/metalagman/tgbotspec/cmd/tgbotspec@latest
tgbotspec -o openapi.yaml
  • Or build a local binary from this repo and run it:
go build -o tgbotspec ./cmd/tgbotspec
./tgbotspec -o openapi.yaml

Multi-platform Distribution (Omnidist)

This repository includes Omnidist configuration in .omnidist/omnidist.yaml and a generated GitHub Actions workflow at .github/workflows/omnidist-release.yml.

Local Omnidist commands (using npm package @omnidist/omnidist@latest):

task omnidist:build
task omnidist:stage
task omnidist:verify

One-time Omnidist bootstrap in this repo:

task omnidist:init
task omnidist:ci

For tag-based release publishing in GitHub Actions, set repository secrets: NPM_PUBLISH_TOKEN and UV_PUBLISH_TOKEN.

Links

License

This project is licensed under the MIT License. See the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

tgbotspec-0.2.6-py3-none-win_amd64.whl (10.4 MB view details)

Uploaded Python 3Windows x86-64

tgbotspec-0.2.6-py3-none-manylinux2014_x86_64.whl (10.1 MB view details)

Uploaded Python 3

tgbotspec-0.2.6-py3-none-manylinux2014_aarch64.whl (9.4 MB view details)

Uploaded Python 3

tgbotspec-0.2.6-py3-none-macosx_11_0_arm64.whl (9.6 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

tgbotspec-0.2.6-py3-none-macosx_10_13_x86_64.whl (10.3 MB view details)

Uploaded Python 3macOS 10.13+ x86-64

File details

Details for the file tgbotspec-0.2.6-py3-none-win_amd64.whl.

File metadata

  • Download URL: tgbotspec-0.2.6-py3-none-win_amd64.whl
  • Upload date:
  • Size: 10.4 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for tgbotspec-0.2.6-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 810cf96a183800384d5b102c2dcc3f3539daf8a8849a1ea4419dd839d19a6577
MD5 321d136fc4adca833a99b480189fe55d
BLAKE2b-256 a9c723372d982412dcb22b3f6151024b53ec6e4cb5e44eab0b50c16580cd99c3

See more details on using hashes here.

File details

Details for the file tgbotspec-0.2.6-py3-none-manylinux2014_x86_64.whl.

File metadata

  • Download URL: tgbotspec-0.2.6-py3-none-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 10.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for tgbotspec-0.2.6-py3-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9815b9540584e8d51fbbee73db43b5845015916ecc46ad5902573d9a55c90a74
MD5 ec034b0440476b11a10d18314696745f
BLAKE2b-256 5b4b0914578edd1a1fc59d69bd7d2e4471f7df3122b015b79bc0a5f0b12f8370

See more details on using hashes here.

File details

Details for the file tgbotspec-0.2.6-py3-none-manylinux2014_aarch64.whl.

File metadata

  • Download URL: tgbotspec-0.2.6-py3-none-manylinux2014_aarch64.whl
  • Upload date:
  • Size: 9.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for tgbotspec-0.2.6-py3-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 59cc67cd0182c1c534453805621cbc64a41497708188a6f89270bc1f07b67c06
MD5 ec2a5556d4f0db9346c422152c37eb94
BLAKE2b-256 98a69bcde7a42ca6c9ab35fc60d9b0bbd8f40f273aa895dd13a988f6466585aa

See more details on using hashes here.

File details

Details for the file tgbotspec-0.2.6-py3-none-macosx_11_0_arm64.whl.

File metadata

  • Download URL: tgbotspec-0.2.6-py3-none-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 9.6 MB
  • Tags: Python 3, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for tgbotspec-0.2.6-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3dce515d5e0488df0b000f1d88bd2bafee77bc534a49863147e4e1b1d4bc0c78
MD5 ef23c0f2a22dd3d6c9198cc9b5b57746
BLAKE2b-256 1c53dc6e9e037232eaaa839d28e1fb0d6bde25d9d9d8e866a880f1769a515434

See more details on using hashes here.

File details

Details for the file tgbotspec-0.2.6-py3-none-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: tgbotspec-0.2.6-py3-none-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 10.3 MB
  • Tags: Python 3, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for tgbotspec-0.2.6-py3-none-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 2fdc37fe1cd9713a1cbe6bfdad6832c4f2c114b15484a425a9d958bec2692420
MD5 5b5c19ba77078c1d1d365446c59da22b
BLAKE2b-256 fe4124cefc893956759c7ed4a653195073d02e503f35cf104c29c22b15c04cbb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page