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.5-py3-none-win_amd64.whl (10.4 MB view details)

Uploaded Python 3Windows x86-64

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

Uploaded Python 3

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

Uploaded Python 3

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

Uploaded Python 3macOS 11.0+ ARM64

tgbotspec-0.2.5-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.5-py3-none-win_amd64.whl.

File metadata

  • Download URL: tgbotspec-0.2.5-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.5-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 ee429d822c25533f3a848fe6b41f9ec7e49882577badff4d61c291eef377d302
MD5 83f307d1537022c7a61e40bb38c34474
BLAKE2b-256 3cb86d2a67bec5ec498e1077c4e3049623bdd31e9cc1339b002314d166fffcfb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tgbotspec-0.2.5-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.5-py3-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e8d1392fc1e81573ed0b073ba192c67e964a69f14119490b8cd30b0558d9f3ea
MD5 8c120f8f1eee4b3c9b9095273afd18f8
BLAKE2b-256 7bd39538105a7c7c9581046ce1632547841250dbbdb28953d028e8daa16fb455

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tgbotspec-0.2.5-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.5-py3-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 eff34643df046e4536fdc8ead612fb830862fb083d99172a7af4cc4b77d6cc1b
MD5 78d860926fccabd99b8f5df1bdbee1fc
BLAKE2b-256 383b5b5b935cf1757e2fbbaf5d072e1dc1a3d964d4962c6d003f6621da620f50

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tgbotspec-0.2.5-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.5-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 684a459ff4044903577fa4c2b63f0647ca6347c20db932ddf4a19a24a5929888
MD5 7e2fa07dbb6029bdad84b37498957ce5
BLAKE2b-256 b17cb2e6932a4e73df3017f3f8f4e1e2d7d107fce3adc8961a34123d9b2d5879

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tgbotspec-0.2.5-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.5-py3-none-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 268d166c844482cff1ee4b75f13a12fb861bc95d13a20d4b35e17bb8985d7576
MD5 4b82ec27e7520945beb22d08753e904d
BLAKE2b-256 c9509cbf452fd515efa76a48bd5f6bc28e064d503a6fc1ece6cd93d03898ed01

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