diff --git a/CHANGELOG.md b/CHANGELOG.md index 48d1ea66ab..e23c6f6230 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ * `LoginURL` and `LoginURLInlineKeyboardButton` has been added * `replyMarkup` field was added to the `CommonMessage` objects via `AbleToBeMarkedUp` interface +* `SwitchInlineQueryCurrentChatInlineKeyboardButton#switchInlineQueryCurrentChat` field fixed ## 0.15.0 diff --git a/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/Common.kt b/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/Common.kt index b0dc8b4388..6ea61adc2b 100644 --- a/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/Common.kt +++ b/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/Common.kt @@ -87,6 +87,7 @@ const val isClosedField = "is_closed" const val loginUrlField = "login_url" const val forwardTextField = "forward_text" const val botUsernameField = "bot_username" +const val switchInlineQueryCurrentChatField = "switch_inline_query_current_chat" const val requestWriteAccessField = "request_write_access" diff --git a/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/buttons/InlineKeyboardButtons/SwitchInlineQueryCurrentChatInlineKeyboardButton.kt b/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/buttons/InlineKeyboardButtons/SwitchInlineQueryCurrentChatInlineKeyboardButton.kt index 731a3b4cca..fdfc663c49 100644 --- a/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/buttons/InlineKeyboardButtons/SwitchInlineQueryCurrentChatInlineKeyboardButton.kt +++ b/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/buttons/InlineKeyboardButtons/SwitchInlineQueryCurrentChatInlineKeyboardButton.kt @@ -1,11 +1,12 @@ package com.github.insanusmokrassar.TelegramBotAPI.types.buttons.InlineKeyboardButtons +import com.github.insanusmokrassar.TelegramBotAPI.types.switchInlineQueryCurrentChatField import kotlinx.serialization.SerialName import kotlinx.serialization.Serializable @Serializable data class SwitchInlineQueryCurrentChatInlineKeyboardButton( override val text: String, - @SerialName("switch_inline_query_currentChat") + @SerialName(switchInlineQueryCurrentChatField) val switchInlineQueryCurrentChat: String ) : InlineKeyboardButton