diff --git a/td.go b/td.go index 5dd482d..08ba74c 100644 --- a/td.go +++ b/td.go @@ -67,10 +67,20 @@ func ListenTG(c *tdlib.Client) { ID64: updateMsg.Message.ID, ChatID64: updateMsg.Message.ChatID, Text: txt, + Callbacks: nil, } m.Date = time.Unix(int64(updateMsg.Message.Date), 0) + if updateMsg.Message.ReplyMarkup != nil { + if updateMsg.Message.ReplyMarkup.GetReplyMarkupEnum() == tdlib.ReplyMarkupInlineKeyboardType { + rm := updateMsg.Message.ReplayMarkup.(*tdlib.ReplyMarkupInlineKeyboard) + for k, v := range rm.Rows { + fmt.Println("ReplyMarkupInlineKeyboard[%s][%s] : ", k, v.text) + } + } + } + lastChatMsgMux.RLock() if _, ok := lastChatTDMsg[m.ChatID64]; !ok { lastChatMsgMux.RUnlock()