1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-22 16:23:48 +00:00

extract force_reply field into constant

This commit is contained in:
InsanusMokrassar 2022-07-11 01:43:04 +06:00
parent acaf46e015
commit fde2c79f4c
2 changed files with 3 additions and 3 deletions

View File

@ -415,6 +415,7 @@ const val mediaField = "media"
const val disableEditMessageField = "disable_edit_message" const val disableEditMessageField = "disable_edit_message"
const val scoreField = "score" const val scoreField = "score"
const val forceField = "force" const val forceField = "force"
const val forceReplyField = "force_reply"
const val regularPollType = "regular" const val regularPollType = "regular"
const val quizPollType = "quiz" const val quizPollType = "quiz"

View File

@ -1,7 +1,6 @@
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.* import kotlinx.serialization.*
@Serializable @Serializable
@ -10,7 +9,7 @@ data class ReplyForce(
@SerialName(inputFieldPlaceholderField) @SerialName(inputFieldPlaceholderField)
val inputFieldPlaceholder: String? = null val inputFieldPlaceholder: String? = null
) : KeyboardMarkup { ) : KeyboardMarkup {
@SerialName("force_reply") @SerialName(forceReplyField)
@Required @Required
val forceReply: Boolean = true val forceReply: Boolean = true