#telegram-bot #telegram-api #api-wrapper #bot-api #webhook #autogenerated #long

tggen

A mildly competent autogenerated telegram bot api wrapper (helper crate)

36 releases

0.0.37 Apr 1, 2024
0.0.36 Jan 6, 2024
0.0.35 Dec 30, 2023
0.0.29 Oct 15, 2023
0.0.3 Nov 8, 2022

#2306 in Web programming

Download history 7/week @ 2023-12-30 8/week @ 2024-01-06 17/week @ 2024-02-24 1/week @ 2024-03-02 179/week @ 2024-03-30 336/week @ 2024-04-06

515 downloads per month
Used in botapi

MIT license

125KB
3K SLoC

botapi-rs

Autogenerated telegram bot api wrapper using api spec from https://github.com/PaulSonOfLars/telegram-bot-api-spec.
Generates a full serde-based telegram bot api wrapper with idiomatic design patterns.

Features

  • Automatically kept up to date with the latest telegram api
  • Minimal fluff and boilerplate
  • Full async support with tokio
  • Support for both long polling and webhooks
  • Automatically generated documentation

Building the docs

Documentation is generated inline during compilation, to view the docs just run

cargo build
cargo doc --open

Dependencies

~4–6MB
~105K SLoC