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