From b3ba33c863928c040db9de732116dc12c9e38480 Mon Sep 17 00:00:00 2001 From: shoopea Date: Thu, 12 Dec 2019 11:35:30 +0800 Subject: [PATCH] test --- td.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) }