test
This commit is contained in:
parent
40b5f870dc
commit
86fec4550c
8
td.go
8
td.go
@ -296,16 +296,16 @@ func clientMsg(c *tdlib.Client, m TGCommand) {
|
|||||||
MQCWMsgQueue <- r
|
MQCWMsgQueue <- r
|
||||||
}
|
}
|
||||||
case commandCallback:
|
case commandCallback:
|
||||||
p := tdlib.NewCallbackQueryPayloadData(m.CallbackData)
|
d := tdlib.NewCallbackQueryPayloadData(m.CallbackData)
|
||||||
b, _ := json.Marshal(p)
|
b, _ := json.Marshal(p)
|
||||||
log.Printf("CallbackQueryPayloadData :\n%s\n", string(b))
|
log.Printf("CallbackQueryPayloadData :\n%s\n", string(b))
|
||||||
log.Printf("Type : %s\n", p.GetCallbackQueryPayloadEnum())
|
log.Printf("Type : %s\n", p.GetCallbackQueryPayloadEnum())
|
||||||
/*
|
p, err := tdlib.unmarshalCallbackQueryPayload(b)
|
||||||
|
|
||||||
a, err := c.GetCallbackQueryAnswer(m.FromChatID64, m.FromMsgID64, p)
|
a, err := c.GetCallbackQueryAnswer(m.FromChatID64, m.FromMsgID64, p)
|
||||||
logOnError(err, "clientMsg : GetCallbackQueryAnswer")
|
logOnError(err, "clientMsg : GetCallbackQueryAnswer")
|
||||||
b, _ := json.Marshal(a)
|
b, _ = json.Marshal(a)
|
||||||
log.Printf("GetCallbackQueryAnswer :\n%s\n", string(b))
|
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