Open kbats183 opened 2 years ago
Send
should be used for methods that return a Message
, Request
should be used for everything else.
This issue has come up a few times before, I really should document this more clearly.
Looks like this project is inactive. I've forked & fixed this issue in this repo: https://github.com/huantt/telegram-bot-api
Method Send with InlineConfig as Chattable interface implementation invoke telegram api method
answerInlineQuery
, and unmarshal api responce to Message type.https://github.com/go-telegram-bot-api/telegram-bot-api/blob/ef6e421559d82708b59888ba2022da7602284053/bot.go#L341-L351
But this api method return only boolean api reference.
And this leads to an error
json: cannot unmarshal bool into Go value of type tgbotapi.Message
.