mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2025-09-05 16:19:26 +00:00
feat: Add UniqueGiftBackdrop type
This commit is contained in:
@@ -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