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)
b, _ := json.Marshal(p)
log.Printf("CallbackQueryPayloadData :\n%s\n", string(b))
d := *p
b, _ = json.Marshal(d)
d := *p.(tdlib.CallbackQueryPayload)
e := d.(tdlib.CallbackQueryPayload)
b, _ = json.Marshal(e)
log.Printf("CallbackQueryPayloadData2 :\n%s\n", string(b))
/*
a, err := c.GetCallbackQueryAnswer(m.FromChatID64, m.FromMsgID64, p)