Desiders / telers

An asynchronous framework for Telegram Bot API written in Rust
https://docs.rs/telers
36 stars 3 forks source link

Code generation of TBA types and methods #5

Open Desiders opened 7 months ago

Desiders commented 7 months ago

Add telers-codegen crate to perform fast code generation of Telegram Bot API types and methods.

This will speed up the implementation of new versions of Telegram Bot API, avoid human error when manually describing fields and other things.

At the moment, the following functionality is needed:

  1. Creating Telegram types according to the documentation;
  2. Identification of field types in the documentation and their correspondence to the types in the Rust;
  3. Apart from the explicit type separation (tagged-types) according to Telegram we need to add this for types like Chat, Message, etc. with own separation rules;
  4. Creating Telegram methods according to the documentation;
  5. Generating builder methods for Telegram methods.
Desiders commented 7 months ago

Currently, development is underway in the codegen branch