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