1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2025-09-03 23:29:33 +00:00

feat: Add UniqueGiftModel type

This commit is contained in:
bpavuk (aider)
2025-04-13 14:25:02 +03:00
committed by bpavuk
parent a3949c752d
commit 99559f477e

View File

@@ -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
)