easy_callback
Automatic callback data encoding for teloxide.
This crate provides a derive macro for quickly implementing conversions
between CallbackQuery and a custom user-defined type, with support
for different encoder implementations.
Example
This example demonstrates the library's functionality using the count_bot example.
// ...
// Callback enum encoded using postcard
// ...
// ...
async
// ...
Usage
Add the following to your Cargo.toml,
choosing one or more features corresponding to the implementations you want to use:
[]
= { = "1.0.1", =["postcard"] }
Available implementations:
Multiple implementations can be enabled simultaneously if required.
License
This project is licensed under either of
at your option.