mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-12-22 16:47:13 +00:00
fix in switchInlineQueryCurrentChat
This commit is contained in:
parent
4570df330b
commit
85b3f86746
@ -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
|
||||
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user