1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-26 12:08:43 +00:00

update limits of dices

This commit is contained in:
InsanusMokrassar 2020-11-26 19:37:35 +06:00
parent 2cc66ef13c
commit bd4eb29fc1
2 changed files with 12 additions and 12 deletions

View File

@ -61,14 +61,14 @@ val inlineQueryAnswerResultsLimit = 0 .. 50
val customTitleLength = 0 .. 16 val customTitleLength = 0 .. 16
val dartsAndCubeDiceResultLimit = 1 .. 6 val dartsCubeAndBowlingDiceResultLimit = 1 .. 6
@Deprecated("Renamed", ReplaceWith("dartsAndCubeDiceResultLimit", "dev.inmo.tgbotapi.types.dartsAndCubeDiceResultLimit")) @Deprecated("Renamed", ReplaceWith("dartsCubeAndBowlingDiceResultLimit", "dev.inmo.tgbotapi.types.dartsCubeAndBowlingDiceResultLimit"))
val dartsAndCubeDiceResultLimit
get() = dartsCubeAndBowlingDiceResultLimit
@Deprecated("Renamed", ReplaceWith("dartsCubeAndBowlingDiceResultLimit", "dev.inmo.tgbotapi.types.dartsCubeAndBowlingDiceResultLimit"))
val diceResultLimit val diceResultLimit
get() = dartsAndCubeDiceResultLimit get() = dartsCubeAndBowlingDiceResultLimit
val basketballBowlingAndFootballDiceResultLimit = 1 .. 5 val basketballAndFootballDiceResultLimit = 1 .. 5
@Deprecated("Renamed", ReplaceWith("basketballBowlingAndFootballDiceResultLimit", "dev.inmo.tgbotapi.types.basketballBowlingAndFootballDiceResultLimit"))
val basketballAndFootballDiceResultLimit
get() = basketballBowlingAndFootballDiceResultLimit
val slotMachineDiceResultLimit = 1 .. 64 val slotMachineDiceResultLimit = 1 .. 64
val botCommandLengthLimit = 1 .. 32 val botCommandLengthLimit = 1 .. 32

View File

@ -15,31 +15,31 @@ sealed class DiceAnimationType {
object CubeDiceAnimationType : DiceAnimationType() { object CubeDiceAnimationType : DiceAnimationType() {
override val emoji: String = "\uD83C\uDFB2" override val emoji: String = "\uD83C\uDFB2"
override val valueLimits: IntRange override val valueLimits: IntRange
get() = dartsAndCubeDiceResultLimit get() = dartsCubeAndBowlingDiceResultLimit
} }
@Serializable(DiceAnimationTypeSerializer::class) @Serializable(DiceAnimationTypeSerializer::class)
object DartsDiceAnimationType : DiceAnimationType() { object DartsDiceAnimationType : DiceAnimationType() {
override val emoji: String = "\uD83C\uDFAF" override val emoji: String = "\uD83C\uDFAF"
override val valueLimits: IntRange override val valueLimits: IntRange
get() = dartsAndCubeDiceResultLimit get() = dartsCubeAndBowlingDiceResultLimit
} }
@Serializable(DiceAnimationTypeSerializer::class) @Serializable(DiceAnimationTypeSerializer::class)
object BasketballDiceAnimationType : DiceAnimationType() { object BasketballDiceAnimationType : DiceAnimationType() {
override val emoji: String = "\uD83C\uDFC0" override val emoji: String = "\uD83C\uDFC0"
override val valueLimits: IntRange override val valueLimits: IntRange
get() = basketballBowlingAndFootballDiceResultLimit get() = basketballAndFootballDiceResultLimit
} }
@Serializable(DiceAnimationTypeSerializer::class) @Serializable(DiceAnimationTypeSerializer::class)
object FootballDiceAnimationType : DiceAnimationType() { object FootballDiceAnimationType : DiceAnimationType() {
override val emoji: String = "" override val emoji: String = ""
override val valueLimits: IntRange override val valueLimits: IntRange
get() = basketballBowlingAndFootballDiceResultLimit get() = basketballAndFootballDiceResultLimit
} }
@Serializable(DiceAnimationTypeSerializer::class) @Serializable(DiceAnimationTypeSerializer::class)
object BowlingDiceAnimationType : DiceAnimationType() { object BowlingDiceAnimationType : DiceAnimationType() {
override val emoji: String = "\uD83C\uDFB3" override val emoji: String = "\uD83C\uDFB3"
override val valueLimits: IntRange override val valueLimits: IntRange
get() = basketballBowlingAndFootballDiceResultLimit get() = dartsCubeAndBowlingDiceResultLimit
} }
@Serializable(DiceAnimationTypeSerializer::class) @Serializable(DiceAnimationTypeSerializer::class)
object SlotMachineDiceAnimationType : DiceAnimationType() { object SlotMachineDiceAnimationType : DiceAnimationType() {