From e615d0ca7bf59e6b9ffbb7572f9a9db700af1b18 Mon Sep 17 00:00:00 2001 From: shoopea Date: Thu, 12 Dec 2019 11:35:49 +0800 Subject: [PATCH] test --- td.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/td.go b/td.go index 1455c0f..7a4d085 100644 --- a/td.go +++ b/td.go @@ -75,8 +75,8 @@ func ListenTG(c *tdlib.Client) { if updateMsg.Message.ReplyMarkup != nil { if updateMsg.Message.ReplyMarkup.GetReplyMarkupEnum() == tdlib.ReplyMarkupInlineKeyboardType { rm := updateMsg.Message.ReplyMarkup.(*tdlib.ReplyMarkupInlineKeyboard) - for k1, v1 := range rm.Rows { - for k2, v2 := range v1 { + for _, v1 := range rm.Rows { + for _, v2 := range v1 { if v2.Type.GetInlineKeyboardButtonTypeEnum() == tdlib.InlineKeyboardButtonTypeCallbackType { cwcb := ChatWarsCallback{ Name: v2.Text,