mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2025-09-05 16:19:26 +00:00
feat: Add UniqueGiftModel type
This commit is contained in:
@@ -0,0 +1,22 @@
|
|||||||
|
package dev.inmo.tgbotapi.types
|
||||||
|
|
||||||
|
import dev.inmo.tgbotapi.types.files.Sticker
|
||||||
|
import kotlinx.serialization.SerialName
|
||||||
|
import kotlinx.serialization.Serializable
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This object describes the model of a unique gift.
|
||||||
|
*
|
||||||
|
* @param name Name of the model
|
||||||
|
* @param sticker The sticker that represents the unique gift
|
||||||
|
* @param rarityPerMille The number of unique gifts that receive this model for every 1000 gifts upgraded
|
||||||
|
*/
|
||||||
|
@Serializable
|
||||||
|
data class UniqueGiftModel(
|
||||||
|
@SerialName(nameField)
|
||||||
|
val name: String,
|
||||||
|
@SerialName(stickerField)
|
||||||
|
val sticker: Sticker,
|
||||||
|
@SerialName(rarityPerMilleField)
|
||||||
|
val rarityPerMille: Int
|
||||||
|
)
|
Reference in New Issue
Block a user