diff --git a/td.go b/td.go index 7377cee..edef573 100644 --- a/td.go +++ b/td.go @@ -300,9 +300,8 @@ func clientMsg(c *tdlib.Client, m TGCommand) { b, _ := json.Marshal(d) log.Printf("CallbackQueryPayloadData :\n%s\n", string(b)) log.Printf("Type : %s\n", d.GetCallbackQueryPayloadEnum()) - p, err := unmarshalCallbackQueryPayload(b) - a, err := c.GetCallbackQueryAnswer(m.FromChatID64, m.FromMsgID64, p) + a, err := c.GetCallbackQueryAnswer(m.FromChatID64, m.FromMsgID64, CallbackQueryPayload(d)) logOnError(err, "clientMsg : GetCallbackQueryAnswer") b, _ = json.Marshal(a) log.Printf("GetCallbackQueryAnswer :\n%s\n", string(b))