diff --git a/td.go b/td.go index d24b71b..1455c0f 100644 --- a/td.go +++ b/td.go @@ -80,7 +80,7 @@ func ListenTG(c *tdlib.Client) { if v2.Type.GetInlineKeyboardButtonTypeEnum() == tdlib.InlineKeyboardButtonTypeCallbackType { cwcb := ChatWarsCallback{ 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)) }