https://github.com/ark0f/tg-bot-api
Telegram Bot API parser and generators
https://github.com/ark0f/tg-bot-api
json-schema-definitions openapi rust telegram-bot-api
Last synced: about 1 month ago
JSON representation
Telegram Bot API parser and generators
- Host: GitHub
- URL: https://github.com/ark0f/tg-bot-api
- Owner: ark0f
- License: apache-2.0
- Created: 2020-11-17T16:08:38.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2025-02-14T01:40:29.000Z (3 months ago)
- Last Synced: 2025-03-29T08:04:42.963Z (about 1 month ago)
- Topics: json-schema-definitions, openapi, rust, telegram-bot-api
- Language: Rust
- Homepage: https://ark0f.github.io/tg-bot-api
- Size: 1.96 MB
- Stars: 53
- Watchers: 3
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE-APACHE.md
Awesome Lists containing this project
README
# tg-bot-api
[](https://github.com/ark0f/tg-bot-api/actions)

[](https://crates.io/crates/tg-bot-api)
[](https://docs.rs/tg-bot-api)Telegram Bot API parser in Rust
Generated schemas can be found at `ark0f.github.io/tg-bot-api`:
OpenAPI:
* [`/openapi.yml`](https://ark0f.github.io/tg-bot-api/openapi.yml) or
[`/openapi.json`](https://ark0f.github.io/tg-bot-api/openapi.json)Custom schema thar more convenient to work with:
* [`/custom_v2.json`](https://ark0f.github.io/tg-bot-api/custom_v2.json)
* [`/custom_v2.schema.json`](https://ark0f.github.io/tg-bot-api/custom_v2.schema.json) - JSON Schema Draft #7
for `/custom_v2.json`Documentation can be found at [CUSTOM_SCHEMA.md](CUSTOM_SCHEMA.md).
`.min.json` suffix can be used to fetch minimized JSON. For example: `openapi.min.json`, `custom_v2.min.json`, etc.
## Automatic deploy
Schemas are deployed automatically every midnight at UTC+0 and when there is a new commit
in [tdlib/telegram-bot-api](https://github.com/tdlib/telegram-bot-api).## Custom custom schema v1
This is a note for old users.
Schema still remains and updates at old URLs as earlier:
* [`/custom.json`](https://ark0f.github.io/tg-bot-api/custom.json)
* [`/custom.schema.json`](https://ark0f.github.io/tg-bot-api/custom.schema.json)See [v2 changes](V2_CHANGES.md) for more details.