mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-29 13:38:43 +00:00
extract ReplyKeyboardMarkup fields names to the constants
This commit is contained in:
parent
69d36c5c1b
commit
53e8c53fb1
@ -391,6 +391,8 @@ const val requireShippingAddressField = "need_shipping_address"
|
|||||||
const val shouldSendPhoneNumberToProviderField = "send_phone_number_to_provider"
|
const val shouldSendPhoneNumberToProviderField = "send_phone_number_to_provider"
|
||||||
const val shouldSendEmailToProviderField = "send_email_to_provider"
|
const val shouldSendEmailToProviderField = "send_email_to_provider"
|
||||||
|
|
||||||
|
const val resizeKeyboardField = "resize_keyboard"
|
||||||
|
const val oneTimeKeyboardField = "one_time_keyboard"
|
||||||
const val inputFieldPlaceholderField = "input_field_placeholder"
|
const val inputFieldPlaceholderField = "input_field_placeholder"
|
||||||
|
|
||||||
const val priceDependOnShipAddressField = "is_flexible"
|
const val priceDependOnShipAddressField = "is_flexible"
|
||||||
|
@ -1,16 +1,15 @@
|
|||||||
package dev.inmo.tgbotapi.types.buttons
|
package dev.inmo.tgbotapi.types.buttons
|
||||||
|
|
||||||
import dev.inmo.tgbotapi.types.inputFieldPlaceholderField
|
import dev.inmo.tgbotapi.types.*
|
||||||
import dev.inmo.tgbotapi.types.inputFieldPlaceholderLimit
|
|
||||||
import kotlinx.serialization.SerialName
|
import kotlinx.serialization.SerialName
|
||||||
import kotlinx.serialization.Serializable
|
import kotlinx.serialization.Serializable
|
||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
data class ReplyKeyboardMarkup(
|
data class ReplyKeyboardMarkup(
|
||||||
val keyboard: Matrix<KeyboardButton>,
|
val keyboard: Matrix<KeyboardButton>,
|
||||||
@SerialName("resize_keyboard")
|
@SerialName(resizeKeyboardField)
|
||||||
val resizeKeyboard: Boolean? = null,
|
val resizeKeyboard: Boolean? = null,
|
||||||
@SerialName("one_time_keyboard")
|
@SerialName(oneTimeKeyboardField)
|
||||||
val oneTimeKeyboard: Boolean? = null,
|
val oneTimeKeyboard: Boolean? = null,
|
||||||
@SerialName(inputFieldPlaceholderField)
|
@SerialName(inputFieldPlaceholderField)
|
||||||
val inputFieldPlaceholder: String? = null,
|
val inputFieldPlaceholder: String? = null,
|
||||||
|
Loading…
Reference in New Issue
Block a user