test
This commit is contained in:
parent
08488e7a5c
commit
e2b9ddc3fa
6
td.go
6
td.go
@ -75,8 +75,10 @@ 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.ReplyMarkup.(*tdlib.ReplyMarkupInlineKeyboard)
|
rm := updateMsg.Message.ReplyMarkup.(*tdlib.ReplyMarkupInlineKeyboard)
|
||||||
for k, v := range rm.Rows {
|
for k1, v1 := range rm.Rows {
|
||||||
fmt.Println("ReplyMarkupInlineKeyboard[%s][%s] : ", k, v.Text)
|
for k2, v2 := range v1 {
|
||||||
|
fmt.Println("ReplyMarkupInlineKeyboard[%s][%s][%s] : ", k1, k2, v2.Text)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user