This commit is contained in:
shoopea 2020-02-05 12:47:34 +08:00
parent 86fec4550c
commit 11665577ee

2
td.go
View File

@ -299,7 +299,7 @@ func clientMsg(c *tdlib.Client, m TGCommand) {
d := tdlib.NewCallbackQueryPayloadData(m.CallbackData)
b, _ := json.Marshal(p)
log.Printf("CallbackQueryPayloadData :\n%s\n", string(b))
log.Printf("Type : %s\n", p.GetCallbackQueryPayloadEnum())
log.Printf("Type : %s\n", d.GetCallbackQueryPayloadEnum())
p, err := tdlib.unmarshalCallbackQueryPayload(b)
a, err := c.GetCallbackQueryAnswer(m.FromChatID64, m.FromMsgID64, p)