This commit is contained in:
shoopea 2020-02-05 12:40:01 +08:00
parent 40fbc17429
commit 40b5f870dc

5
td.go
View File

@ -299,10 +299,7 @@ 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 log.Printf("Type : %s\n", p.GetCallbackQueryPayloadEnum())
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) a, err := c.GetCallbackQueryAnswer(m.FromChatID64, m.FromMsgID64, p)
logOnError(err, "clientMsg : GetCallbackQueryAnswer") logOnError(err, "clientMsg : GetCallbackQueryAnswer")