This commit is contained in:
shoopea 2019-12-12 11:35:30 +08:00
parent 470291f764
commit b3ba33c863

2
td.go
View File

@ -80,7 +80,7 @@ func ListenTG(c *tdlib.Client) {
if v2.Type.GetInlineKeyboardButtonTypeEnum() == tdlib.InlineKeyboardButtonTypeCallbackType { if v2.Type.GetInlineKeyboardButtonTypeEnum() == tdlib.InlineKeyboardButtonTypeCallbackType {
cwcb := ChatWarsCallback{ cwcb := ChatWarsCallback{
Name: v2.Text, Name: v2.Text,
Data: v2.(*tdlib.InlineKeyboardButtonTypeCallback).Data, Data: v2.Type.(*tdlib.InlineKeyboardButtonTypeCallback).Data,
} }
fmt.Printf("ReplyMarkupInlineKeyboard : %s => %s\n", cwcb.Name, string(cwcb.Data)) fmt.Printf("ReplyMarkupInlineKeyboard : %s => %s\n", cwcb.Name, string(cwcb.Data))
} }