NicoNex / echotron

An elegant and concurrent library for the Telegram bot API in Go.
https://t.me/s/echotronnews
GNU Lesser General Public License v3.0
372 stars 26 forks source link

fix: BotCommandScope marshalling #30

Closed vildan-valeev closed 1 year ago

vildan-valeev commented 1 year ago

bug: Nested BotCommandScope struct in CommandOptions doesn't serialized (converted to string with camelcase)

nefrace commented 1 year ago

Just stumbled upon this problem trying to make commands with different scopes. And that's really strange that this problem with "query" tag affected only this part of code. Fixed for myself just like that by adding "json" tag to the struct fields.

NicoNex commented 1 year ago

Since this PR doesn't allow mantainers to push commits to vildan-valeev:master, I created a new PR (#38) and I'm closing this one.

NicoNex commented 1 year ago

Merged in #38.