diff --git a/td.go b/td.go index 0e4fdc7..84782c0 100644 --- a/td.go +++ b/td.go @@ -299,7 +299,7 @@ func clientMsg(c *tdlib.Client, m TGCommand) { d := tdlib.NewCallbackQueryPayloadData(m.CallbackData) b, _ := json.Marshal(p) log.Printf("CallbackQueryPayloadData :\n%s\n", string(b)) - log.Printf("Type : %s\n", p.GetCallbackQueryPayloadEnum()) + log.Printf("Type : %s\n", d.GetCallbackQueryPayloadEnum()) p, err := tdlib.unmarshalCallbackQueryPayload(b) a, err := c.GetCallbackQueryAnswer(m.FromChatID64, m.FromMsgID64, p)