From 5b7d7afd79354904b6238a387583e11ebf03ce28 Mon Sep 17 00:00:00 2001 From: shoopea Date: Thu, 12 Dec 2019 11:40:25 +0800 Subject: [PATCH] export inline keyboard callbacks --- td.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/td.go b/td.go index 7a4d085..cb98715 100644 --- a/td.go +++ b/td.go @@ -82,7 +82,8 @@ func ListenTG(c *tdlib.Client) { Name: v2.Text, Data: v2.Type.(*tdlib.InlineKeyboardButtonTypeCallback).Data, } - fmt.Printf("ReplyMarkupInlineKeyboard : %s => %s\n", cwcb.Name, string(cwcb.Data)) + m.Callbacks = append(m.Callbacks, cwcb) + // fmt.Printf("ReplyMarkupInlineKeyboard : %s => %s\n", cwcb.Name, string(cwcb.Data)) } } }