https://github.com/tbxark/telegram-bot-api-types
This is a project of a type definition file for the Telegram Bot API that generates multilingual automatically.
https://github.com/tbxark/telegram-bot-api-types
generator golang telegram telegram-bot telegram-bot-api typescript
Last synced: 3 months ago
JSON representation
This is a project of a type definition file for the Telegram Bot API that generates multilingual automatically.
- Host: GitHub
- URL: https://github.com/tbxark/telegram-bot-api-types
- Owner: tbxark
- License: mit
- Created: 2024-08-24T06:01:43.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2026-03-15T11:16:14.000Z (3 months ago)
- Last Synced: 2026-03-28T00:37:11.857Z (3 months ago)
- Topics: generator, golang, telegram, telegram-bot, telegram-bot-api, typescript
- Language: Go
- Homepage:
- Size: 979 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# telegram-bot-api-types
Automatically generate type definition files for the Telegram Bot API in multiple programming languages.

### Supported Languages
- [x] [TypeScript](./dist/dts)
- [x] [JavaScript](./dist/jsdoc)
- [x] [Json](./dist/spec)
- [x] [Swift](./dist/swift)
### Installation
```sh
go install github.com/tbxark/telegram-bot-api-types@latest
```
### Usage
You can directly use the precompiled version we provide, or generate your own language version.
```
telegram-bot-api-types --help
-dist string
The output directory (default "./dist")
-help
Show help
-lang string
The output language (default "typescript,jsdoc,spec,swift")
```
## Reference
- Refactored the scraper inspired by [telegram-bot-api-spec](https://github.com/PaulSonOfLars/telegram-bot-api-spec).
## License
**telegram-bot-api-types** is released under the MIT license. [See LICENSE](LICENSE) for details.