diff --git a/td.go b/td.go index 2fc23ab..40fdf7f 100644 --- a/td.go +++ b/td.go @@ -299,10 +299,7 @@ func clientMsg(c *tdlib.Client, m TGCommand) { p := tdlib.NewCallbackQueryPayloadData(m.CallbackData) b, _ := json.Marshal(p) log.Printf("CallbackQueryPayloadData :\n%s\n", string(b)) - d := *p - e := d.(tdlib.CallbackQueryPayload) - b, _ = json.Marshal(e) - log.Printf("CallbackQueryPayloadData2 :\n%s\n", string(b)) + log.Printf("Type : %s\n", p.GetCallbackQueryPayloadEnum()) /* a, err := c.GetCallbackQueryAnswer(m.FromChatID64, m.FromMsgID64, p) logOnError(err, "clientMsg : GetCallbackQueryAnswer")