test
This commit is contained in:
parent
444c13ffc4
commit
cd38a1ed22
6
td.go
6
td.go
@ -297,14 +297,8 @@ func clientMsg(c *tdlib.Client, m TGCommand) {
|
|||||||
}
|
}
|
||||||
case commandCallback:
|
case commandCallback:
|
||||||
d := tdlib.NewCallbackQueryPayloadData(m.CallbackData)
|
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))
|
a, err := c.GetCallbackQueryAnswer(m.FromChatID64, m.FromMsgID64, tdlib.CallbackQueryPayload(d))
|
||||||
logOnError(err, "clientMsg : GetCallbackQueryAnswer")
|
logOnError(err, "clientMsg : GetCallbackQueryAnswer")
|
||||||
b, _ = json.Marshal(a)
|
|
||||||
log.Printf("GetCallbackQueryAnswer :\n%s\n", string(b))
|
|
||||||
default:
|
default:
|
||||||
log.Printf("clientMsg : No handler for command %d.\n", m.Type)
|
log.Printf("clientMsg : No handler for command %d.\n", m.Type)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user