1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-12-22 16:47:13 +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 scoreField = "score"
const val forceField = "force"
const val forceReplyField = "force_reply"
const val regularPollType = "regular"
const val quizPollType = "quiz"

View File

@ -1,7 +1,6 @@
package dev.inmo.tgbotapi.types.buttons
import dev.inmo.tgbotapi.types.inputFieldPlaceholderField
import dev.inmo.tgbotapi.types.inputFieldPlaceholderLimit
import dev.inmo.tgbotapi.types.*
import kotlinx.serialization.*
@Serializable
@ -10,7 +9,7 @@ data class ReplyForce(
@SerialName(inputFieldPlaceholderField)
val inputFieldPlaceholder: String? = null
) : KeyboardMarkup {
@SerialName("force_reply")
@SerialName(forceReplyField)
@Required
val forceReply: Boolean = true