This commit is contained in:
shoopea 2020-02-05 12:47:55 +08:00
parent 11665577ee
commit 7e8dc69d6a

2
td.go
View File

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