This commit is contained in:
shoopea 2020-02-05 12:34:27 +08:00
parent 028996f4e7
commit 99a6290b73

5
td.go
View File

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