go-telegram-bot-api / telegram-bot-api

Golang bindings for the Telegram Bot API
https://go-telegram-bot-api.dev
MIT License
5.57k stars 862 forks source link

fix: handle boolean response #713

Open huantt opened 3 months ago

huantt commented 3 months ago

Issue

In some APIs such as answerCallbackQuery, banchatmember, telegram server return boolean instead of Message struct. It leads to Unmarshal error.

Releated isssues