From 007a3f6be46864d4375761df936ee8238cf11bd1 Mon Sep 17 00:00:00 2001 From: shoopea Date: Wed, 5 Feb 2020 12:19:22 +0800 Subject: [PATCH] test --- td.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/td.go b/td.go index 122eda2..39c9926 100644 --- a/td.go +++ b/td.go @@ -296,8 +296,8 @@ func clientMsg(c *tdlib.Client, m TGCommand) { MQCWMsgQueue <- r } case commandCallback: - d := tdlib.NewCallbackQueryPayloadData(m.CallbackData) - p := d.(tdlib.CallbackQueryPayload) + p := tdlib.CallbackQueryPayload{} + d := p.(tdlib.CallbackQueryPayloadData) a, err := c.GetCallbackQueryAnswer(m.FromChatID64, m.FromMsgID64, p) logOnError(err, "clientMsg : GetCallbackQueryAnswer") b, _ := json.Marshal(a)