bytesnake / telebot

Write Telegram bots in Rust with Tokio and Futures
Other
212 stars 33 forks source link

answerInlineQuery optionals #10

Closed gugahoa closed 6 years ago

gugahoa commented 6 years ago

The optionals should not be serialized if they're None, as it'll cause some unexpected behaviour, such as:

How to reproduce:

Thanks for maintaining this library, I'm using it to develop a bot for a Rust community in Telegram (https://github.com/rust-br/crates-bot). As it grows in complexity I hope to contribute more with PR and other issues.

Cheers!

bytesnake commented 6 years ago

Hey there, I haven't checked the InlineQuery example, and indeed there are some serde directives missing. The commit b90ebc6 should fix this. Please update your version number to 0.2.3. If you're encountering any further problems, please let me know. Thank you for using and testing the InlineQueries!