From 11665577ee213514e4b16261277eeb61125013b7 Mon Sep 17 00:00:00 2001 From: shoopea Date: Wed, 5 Feb 2020 12:47:34 +0800 Subject: [PATCH] test --- td.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/td.go b/td.go index 0e4fdc7..84782c0 100644 --- a/td.go +++ b/td.go @@ -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)