diff --git a/td.go b/td.go index edef573..d449e80 100644 --- a/td.go +++ b/td.go @@ -301,7 +301,7 @@ func clientMsg(c *tdlib.Client, m TGCommand) { log.Printf("CallbackQueryPayloadData :\n%s\n", string(b)) log.Printf("Type : %s\n", d.GetCallbackQueryPayloadEnum()) - a, err := c.GetCallbackQueryAnswer(m.FromChatID64, m.FromMsgID64, CallbackQueryPayload(d)) + 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))