From e2b9ddc3faf3d3a0e14d46374116248831b05192 Mon Sep 17 00:00:00 2001 From: shoopea Date: Thu, 12 Dec 2019 11:20:22 +0800 Subject: [PATCH] test --- td.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/td.go b/td.go index 8713093..92a8110 100644 --- a/td.go +++ b/td.go @@ -75,8 +75,10 @@ func ListenTG(c *tdlib.Client) { if updateMsg.Message.ReplyMarkup != nil { if updateMsg.Message.ReplyMarkup.GetReplyMarkupEnum() == tdlib.ReplyMarkupInlineKeyboardType { rm := updateMsg.Message.ReplyMarkup.(*tdlib.ReplyMarkupInlineKeyboard) - for k, v := range rm.Rows { - fmt.Println("ReplyMarkupInlineKeyboard[%s][%s] : ", k, v.Text) + for k1, v1 := range rm.Rows { + for k2, v2 := range v1 { + fmt.Println("ReplyMarkupInlineKeyboard[%s][%s][%s] : ", k1, k2, v2.Text) + } } } }