diff --git a/telegram-bot/src/main/kotlin/eu/vendeli/tgbot/types/keyboard/InlineKeyboardMarkup.kt b/telegram-bot/src/main/kotlin/eu/vendeli/tgbot/types/keyboard/InlineKeyboardMarkup.kt index b1e27ecdfd..eec02a39c8 100644 --- a/telegram-bot/src/main/kotlin/eu/vendeli/tgbot/types/keyboard/InlineKeyboardMarkup.kt +++ b/telegram-bot/src/main/kotlin/eu/vendeli/tgbot/types/keyboard/InlineKeyboardMarkup.kt @@ -11,7 +11,7 @@ class InlineKeyboardMarkup : Keyboard { internal var inlineKeyboard: MutableList> = mutableListOf() @get:JsonIgnore - val keyboard: List> = inlineKeyboard + val keyboard: List> get() = inlineKeyboard constructor(vararg buttons: InlineKeyboardButton) { inlineKeyboard = mutableListOf(buttons.asList()) diff --git a/telegram-bot/src/main/kotlin/eu/vendeli/tgbot/types/keyboard/ReplyKeyboardMarkup.kt b/telegram-bot/src/main/kotlin/eu/vendeli/tgbot/types/keyboard/ReplyKeyboardMarkup.kt index 5fddad8587..9667c57bcf 100644 --- a/telegram-bot/src/main/kotlin/eu/vendeli/tgbot/types/keyboard/ReplyKeyboardMarkup.kt +++ b/telegram-bot/src/main/kotlin/eu/vendeli/tgbot/types/keyboard/ReplyKeyboardMarkup.kt @@ -12,7 +12,7 @@ class ReplyKeyboardMarkup : Keyboard { internal var kbd: MutableList> = mutableListOf() @get:JsonIgnore - val keyboard: List> = kbd + val keyboard: List> get() = kbd var resizeKeyboard: Boolean? = null var oneTimeKeyboard: Boolean? = null