From cd38a1ed22c018a3ebc62cefed69bb91ed044b9b Mon Sep 17 00:00:00 2001 From: shoopea Date: Wed, 5 Feb 2020 12:57:13 +0800 Subject: [PATCH] test --- td.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/td.go b/td.go index d449e80..fa3d706 100644 --- a/td.go +++ b/td.go @@ -297,14 +297,8 @@ func clientMsg(c *tdlib.Client, m TGCommand) { } case commandCallback: d := tdlib.NewCallbackQueryPayloadData(m.CallbackData) - b, _ := json.Marshal(d) - log.Printf("CallbackQueryPayloadData :\n%s\n", string(b)) - log.Printf("Type : %s\n", d.GetCallbackQueryPayloadEnum()) - a, err := c.GetCallbackQueryAnswer(m.FromChatID64, m.FromMsgID64, tdlib.CallbackQueryPayload(d)) logOnError(err, "clientMsg : GetCallbackQueryAnswer") - b, _ = json.Marshal(a) - log.Printf("GetCallbackQueryAnswer :\n%s\n", string(b)) default: log.Printf("clientMsg : No handler for command %d.\n", m.Type) }