tucnak / telebot

Telebot is a Telegram bot framework in Go.
MIT License
3.95k stars 461 forks source link

BUG: reactions count bug #705

Closed Dionid closed 1 month ago

Dionid commented 3 months ago

On updates of post reactions I've got error: json: cannot unmarshal array into Go struct field MessageReactionCount.Result.message_reaction_count.reactions of type telebot.ReactionCount]

I've found, if you use "message_reaction" allowed_updates, that message_reaction_count.reactions came as list, not just one.

I can't be sure that this will be the same for all cases, but it is in mine.

demget commented 1 month ago

Good catch @Dionid, thank you