1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2025-09-05 08:09:21 +00:00

add footbal dice animation type

This commit is contained in:
2020-11-04 23:47:01 +06:00
parent 159ea6f1cc
commit 6a05a7ecab
2 changed files with 6 additions and 0 deletions

View File

@@ -26,6 +26,10 @@ object SlotMachineDiceAnimationType : DiceAnimationType() {
override val emoji: String = "\uD83C\uDFB0"
}
@Serializable(DiceAnimationTypeSerializer::class)
object FootballDiceAnimationType : DiceAnimationType() {
override val emoji: String = ""
}
@Serializable(DiceAnimationTypeSerializer::class)
data class CustomDiceAnimationType(
override val emoji: String
) : DiceAnimationType()
@@ -39,6 +43,7 @@ internal object DiceAnimationTypeSerializer : KSerializer<DiceAnimationType> {
DartsDiceAnimationType.emoji -> DartsDiceAnimationType
BasketballDiceAnimationType.emoji -> BasketballDiceAnimationType
SlotMachineDiceAnimationType.emoji -> SlotMachineDiceAnimationType
FootballDiceAnimationType.emoji -> FootballDiceAnimationType
else -> CustomDiceAnimationType(type)
}
}