From 7b887d24191295f769fb027b95bbe2d6e2c79721 Mon Sep 17 00:00:00 2001 From: shoopea Date: Wed, 5 Feb 2020 11:55:46 +0800 Subject: [PATCH] test --- td.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/td.go b/td.go index 1be6259..122eda2 100644 --- a/td.go +++ b/td.go @@ -296,8 +296,9 @@ func clientMsg(c *tdlib.Client, m TGCommand) { MQCWMsgQueue <- r } case commandCallback: - p := tdlib.NewCallbackQueryPayloadData(m.CallbackData) - a, err := c.GetCallbackQueryAnswer(m.FromChatID64, m.FromMsgID64, *p.(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) log.Printf("GetCallbackQueryAnswer :\n%s\n", string(b))