This commit is contained in:
shoopea 2020-02-05 12:55:55 +08:00
parent 2448fea3cd
commit 39c6a628cd

3
td.go
View File

@ -300,9 +300,8 @@ func clientMsg(c *tdlib.Client, m TGCommand) {
b, _ := json.Marshal(d) b, _ := json.Marshal(d)
log.Printf("CallbackQueryPayloadData :\n%s\n", string(b)) log.Printf("CallbackQueryPayloadData :\n%s\n", string(b))
log.Printf("Type : %s\n", d.GetCallbackQueryPayloadEnum()) log.Printf("Type : %s\n", d.GetCallbackQueryPayloadEnum())
p, err := unmarshalCallbackQueryPayload(b)
a, err := c.GetCallbackQueryAnswer(m.FromChatID64, m.FromMsgID64, p) a, err := c.GetCallbackQueryAnswer(m.FromChatID64, m.FromMsgID64, CallbackQueryPayload(d))
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))