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.24+ 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.4-py3-none-win_amd64.whl (10.0 MB view details)

Uploaded Python 3Windows x86-64

tgbotspec-0.2.4-py3-none-manylinux2014_x86_64.whl (9.7 MB view details)

Uploaded Python 3

tgbotspec-0.2.4-py3-none-manylinux2014_aarch64.whl (9.2 MB view details)

Uploaded Python 3

tgbotspec-0.2.4-py3-none-macosx_11_0_arm64.whl (9.5 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

tgbotspec-0.2.4-py3-none-macosx_10_13_x86_64.whl (10.0 MB view details)

Uploaded Python 3macOS 10.13+ x86-64

File details

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

File metadata

  • Download URL: tgbotspec-0.2.4-py3-none-win_amd64.whl
  • Upload date:
  • Size: 10.0 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","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.4-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 fcf9bfecee96da49f2c48a6d19e8e2c3b4f426ff705b00a2f314c2b2c91baf8d
MD5 d64f21fec0ea996d364406721fe33494
BLAKE2b-256 721706369f2286c220c4bfb0065a30c02a6071c28d97466fe398410405fe0b43

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tgbotspec-0.2.4-py3-none-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 9.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","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.4-py3-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 01a9821a378fed685aca9ad996497f1bff9941433bcdfc749fe66aa834d7bf33
MD5 c0e356e49998b6874e60fdcec1d5f116
BLAKE2b-256 06a59076b017251e690ae9ae6a54911bd0a49995dc254b0120d287df251f1986

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tgbotspec-0.2.4-py3-none-manylinux2014_aarch64.whl
  • Upload date:
  • Size: 9.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","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.4-py3-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 56338c9e570dc62331dfb2007dbad38146efb1002d81370c6ff4d09d50d09632
MD5 27784d305f1c43959ee8c31f9970c1b9
BLAKE2b-256 24cd970b4ad6cc3096485d9de7bf66e3e86d055bb5b5f5f98b08959d0432def9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tgbotspec-0.2.4-py3-none-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 9.5 MB
  • Tags: Python 3, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","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.4-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 79dd7cacd022b0c120a9108fc3ae7e3c37ed990bc7385a4dbd5407040e1eaa08
MD5 531e818739735837e5aa38164520dc83
BLAKE2b-256 27887af0faf21e086a05c9272910eaccd520ce5c0674316a6b2d60fc73f8ef68

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tgbotspec-0.2.4-py3-none-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 10.0 MB
  • Tags: Python 3, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","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.4-py3-none-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 bd23ba00e14c442ebe9dc2fada8dad2ba1821406118d820a369e434a79006ddf
MD5 f9623bc867a2d222caab40085da226d1
BLAKE2b-256 d593da5da82d8aac7727cdde1240d6d690ff9e4f42a59cc4e3a962c3ae8bba2f

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