From 8c97cb81ab2213f9f3de3724ee7a094048c2fd13 Mon Sep 17 00:00:00 2001 From: shoopea Date: Wed, 5 Feb 2020 11:55:13 +0800 Subject: [PATCH] test --- td.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/td.go b/td.go index d9545e0..1be6259 100644 --- a/td.go +++ b/td.go @@ -297,7 +297,7 @@ func clientMsg(c *tdlib.Client, m TGCommand) { } case commandCallback: p := tdlib.NewCallbackQueryPayloadData(m.CallbackData) - a, err := c.GetCallbackQueryAnswer(m.FromChatID64, m.FromMsgID64, p.(tdlib.CallbackQueryPayload)) + a, err := c.GetCallbackQueryAnswer(m.FromChatID64, m.FromMsgID64, *p.(tdlib.CallbackQueryPayload)) logOnError(err, "clientMsg : GetCallbackQueryAnswer") b, _ := json.Marshal(a) log.Printf("GetCallbackQueryAnswer :\n%s\n", string(b))