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
363 stars 26 forks source link

Error to json marshal MessageEntity #13

Closed topjedi closed 3 years ago

topjedi commented 3 years ago

Looks like misprint, all json fields are in lower case https://core.telegram.org/bots/api#messageentity. Type 'MessageEntity' has error in Length field types.go:278: Length int `json:"Length"`

topjedi commented 3 years ago

fix https://github.com/NicoNex/echotron/pull/14

DjMike238 commented 3 years ago

Looks like misprint, all json fields are in lower case https://core.telegram.org/bots/api#messageentity. Type 'MessageEntity' has error in Length field types.go:278: Length int `json:"Length"`

Good catch! Merging it right now.