Skip to content

Commit

Permalink
change inline/reply keyboard access property to getter instead of field
Browse files Browse the repository at this point in the history
  • Loading branch information
vendelieu committed Dec 22, 2023
1 parent a24c4ea commit e47a2e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class InlineKeyboardMarkup : Keyboard {
internal var inlineKeyboard: MutableList<List<InlineKeyboardButton>> = mutableListOf()

@get:JsonIgnore
val keyboard: List<List<InlineKeyboardButton>> = inlineKeyboard
val keyboard: List<List<InlineKeyboardButton>> get() = inlineKeyboard

constructor(vararg buttons: InlineKeyboardButton) {
inlineKeyboard = mutableListOf(buttons.asList())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class ReplyKeyboardMarkup : Keyboard {
internal var kbd: MutableList<List<KeyboardButton>> = mutableListOf()

@get:JsonIgnore
val keyboard: List<List<KeyboardButton>> = kbd
val keyboard: List<List<KeyboardButton>> get() = kbd

var resizeKeyboard: Boolean? = null
var oneTimeKeyboard: Boolean? = null
Expand Down

0 comments on commit e47a2e6

Please sign in to comment.