This commit is contained in:
shoopea 2020-02-05 12:18:09 +08:00
parent 1e93f71bf4
commit 8ee95cb39e

3
td.go
View File

@ -296,7 +296,8 @@ func clientMsg(c *tdlib.Client, m TGCommand) {
MQCWMsgQueue <- r
}
case commandCallback:
p := tdlib.NewCallbackQueryPayloadData(m.CallbackData).(tdlib.CallbackQueryPayload)
d := tdlib.NewCallbackQueryPayloadData(m.CallbackData)
p := d.(tdlib.CallbackQueryPayload)
a, err := c.GetCallbackQueryAnswer(m.FromChatID64, m.FromMsgID64, p)
logOnError(err, "clientMsg : GetCallbackQueryAnswer")
b, _ := json.Marshal(a)