From 99559f477e17fb4338fd130af66f61a29fed1435 Mon Sep 17 00:00:00 2001 From: "bpavuk (aider)" <75901693+bpavuk@users.noreply.github.com> Date: Sun, 13 Apr 2025 14:25:02 +0300 Subject: [PATCH] feat: Add UniqueGiftModel type --- .../inmo/tgbotapi/types/UniqueGiftModel.kt | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/UniqueGiftModel.kt diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/UniqueGiftModel.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/UniqueGiftModel.kt new file mode 100644 index 0000000000..ed0d9f26e0 --- /dev/null +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/UniqueGiftModel.kt @@ -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 +)