≈ the.bay.news

I built a library for automatic callback encoding/decoding for Teloxide

The Rust Programming Language Forum
I built a library for automatic callback encoding/decoding for Teloxide
I recently tried working with Teloxide and noticed that the library doesn’t have a convenient built-in way to serialize/deserialize callback data. So I decided to try an approach based on binary serialization of an enum followed by base64 encoding. I liked this solution for several reasons: There’s no need to manually implement serialization/deserialization for each callback variant-it’s enough to implement the conversion for the enum once. It’s fast and reasonably efficient in terms of size. ...

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.