telegram-bot-api
telegram-bot-api copied to clipboard
Unmarshal error when sendChatAction return only bool value
When send a chat action typing telegram api will only return "true" which cause
err: json: cannot unmarshal bool into Go value of type tgbotapi.Message
so should we add more judgement when unmarshal api response?
When send a chat action
typingtelegram api will only return"true"which cause
err: json: cannot unmarshal bool into Go value of type tgbotapi.Messageso should we add more judgement when unmarshal api response?
Read this comment, that should help