mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2026-11-07 12:23:14 +00:00
feat: Add UniqueGiftBackdrop type
This commit is contained in:
1 parent
cd3ba8f480
commit
4c9d888668
1 file changed
+21
@@ -0,0 +1,21 @@
|
||||
package dev.inmo.tgbotapi.types
|
||||
|
||||
import kotlinx.serialization.SerialName
|
||||
import kotlinx.serialization.Serializable
|
||||
|
||||
/**
|
||||
* This object describes the backdrop of a unique gift.
|
||||
*
|
||||
* @param name Name of the backdrop
|
||||
* @param colors Colors of the backdrop
|
||||
* @param rarityPerMille The number of unique gifts that receive this backdrop for every 1000 gifts upgraded
|
||||
*/
|
||||
@Serializable
|
||||
data class UniqueGiftBackdrop(
|
||||
@SerialName(nameField)
|
||||
val name: String,
|
||||
@SerialName(colorsField)
|
||||
val colors: UniqueGiftBackdropColors,
|
||||
@SerialName(rarityPerMilleField)
|
||||
val rarityPerMille: Int
|
||||
)
|
||||
Reference in new issue
Block a user