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) }