This commit is contained in:
shoopea 2020-02-05 11:54:41 +08:00
parent 7e83ccae51
commit 7a04471f17

6
td.go
View File

@ -296,10 +296,8 @@ func clientMsg(c *tdlib.Client, m TGCommand) {
MQCWMsgQueue <- r MQCWMsgQueue <- r
} }
case commandCallback: case commandCallback:
p := tdlib.CallbackQueryPayloadData{ p := tdlib.NewCallbackQueryPayloadData(m.CallbackData)
Data: m.CallbackData, a, err := c.GetCallbackQueryAnswer(m.FromChatID64, m.FromMsgID64, p.(tdlib.CallbackQueryPayload))
}
a, err := c.GetCallbackQueryAnswer(m.FromChatID64, m.FromMsgID64, p)
logOnError(err, "clientMsg : GetCallbackQueryAnswer") logOnError(err, "clientMsg : GetCallbackQueryAnswer")
b, _ := json.Marshal(a) b, _ := json.Marshal(a)
log.Printf("GetCallbackQueryAnswer :\n%s\n", string(b)) log.Printf("GetCallbackQueryAnswer :\n%s\n", string(b))