mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-22 16:23:48 +00:00
add footbal dice animation type
This commit is contained in:
parent
159ea6f1cc
commit
6a05a7ecab
@ -18,6 +18,7 @@
|
|||||||
* New fields `AudioFile#fileName` and `VideoFile#fileName`
|
* New fields `AudioFile#fileName` and `VideoFile#fileName`
|
||||||
* New fields `SendDocument#disableContentTypeDetection` and `InputMediaDocument#disableContentTypeDetection`
|
* New fields `SendDocument#disableContentTypeDetection` and `InputMediaDocument#disableContentTypeDetection`
|
||||||
* New request `UnpinAllChatMessages`
|
* New request `UnpinAllChatMessages`
|
||||||
|
* New dice type `FootballDiceAnimationType`
|
||||||
* `API`:
|
* `API`:
|
||||||
* Extensions `TelegramBot#pinChatMessage` now support any `Chat` and `Message`s from any `Chat`
|
* Extensions `TelegramBot#pinChatMessage` now support any `Chat` and `Message`s from any `Chat`
|
||||||
* New extensions `TelegramBot#unpinAllChatMessages`
|
* New extensions `TelegramBot#unpinAllChatMessages`
|
||||||
|
@ -26,6 +26,10 @@ object SlotMachineDiceAnimationType : DiceAnimationType() {
|
|||||||
override val emoji: String = "\uD83C\uDFB0"
|
override val emoji: String = "\uD83C\uDFB0"
|
||||||
}
|
}
|
||||||
@Serializable(DiceAnimationTypeSerializer::class)
|
@Serializable(DiceAnimationTypeSerializer::class)
|
||||||
|
object FootballDiceAnimationType : DiceAnimationType() {
|
||||||
|
override val emoji: String = "⚽"
|
||||||
|
}
|
||||||
|
@Serializable(DiceAnimationTypeSerializer::class)
|
||||||
data class CustomDiceAnimationType(
|
data class CustomDiceAnimationType(
|
||||||
override val emoji: String
|
override val emoji: String
|
||||||
) : DiceAnimationType()
|
) : DiceAnimationType()
|
||||||
@ -39,6 +43,7 @@ internal object DiceAnimationTypeSerializer : KSerializer<DiceAnimationType> {
|
|||||||
DartsDiceAnimationType.emoji -> DartsDiceAnimationType
|
DartsDiceAnimationType.emoji -> DartsDiceAnimationType
|
||||||
BasketballDiceAnimationType.emoji -> BasketballDiceAnimationType
|
BasketballDiceAnimationType.emoji -> BasketballDiceAnimationType
|
||||||
SlotMachineDiceAnimationType.emoji -> SlotMachineDiceAnimationType
|
SlotMachineDiceAnimationType.emoji -> SlotMachineDiceAnimationType
|
||||||
|
FootballDiceAnimationType.emoji -> FootballDiceAnimationType
|
||||||
else -> CustomDiceAnimationType(type)
|
else -> CustomDiceAnimationType(type)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user