From 99a6290b73e56685570d27f2ce40a75c8c66a44e Mon Sep 17 00:00:00 2001 From: shoopea Date: Wed, 5 Feb 2020 12:34:27 +0800 Subject: [PATCH] test --- td.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/td.go b/td.go index d17c539..6b9c280 100644 --- a/td.go +++ b/td.go @@ -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)