This commit is contained in:
shoopea 2019-12-12 11:18:11 +08:00
parent 470f44eae0
commit 0993dfbcdb

2
td.go
View File

@ -74,7 +74,7 @@ func ListenTG(c *tdlib.Client) {
if updateMsg.Message.ReplyMarkup != nil { if updateMsg.Message.ReplyMarkup != nil {
if updateMsg.Message.ReplyMarkup.GetReplyMarkupEnum() == tdlib.ReplyMarkupInlineKeyboardType { if updateMsg.Message.ReplyMarkup.GetReplyMarkupEnum() == tdlib.ReplyMarkupInlineKeyboardType {
rm := updateMsg.Message.ReplayMarkup.(*tdlib.ReplyMarkupInlineKeyboard) rm := updateMsg.Message.ReplyMarkup.(*tdlib.ReplyMarkupInlineKeyboard)
for k, v := range rm.Rows { for k, v := range rm.Rows {
fmt.Println("ReplyMarkupInlineKeyboard[%s][%s] : ", k, v.text) fmt.Println("ReplyMarkupInlineKeyboard[%s][%s] : ", k, v.text)
} }