This commit is contained in:
shoopea 2020-02-05 12:57:13 +08:00
parent 444c13ffc4
commit cd38a1ed22

6
td.go
View File

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