diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/gifts/AcceptedGiftTypes.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/gifts/AcceptedGiftTypes.kt index 6fa54f4477..dbb9ebca5b 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/gifts/AcceptedGiftTypes.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/gifts/AcceptedGiftTypes.kt @@ -7,14 +7,7 @@ import dev.inmo.tgbotapi.types.unlimitedGiftsField import kotlinx.serialization.SerialName import kotlinx.serialization.Serializable -/** - * This object describes the types of gifts that can be gifted to a user or a chat. - * - * @param unlimitedGifts True, if unlimited regular gifts are accepted - * @param limitedGifts True, if limited regular gifts are accepted - * @param uniqueGifts True, if unique gifts or gifts that can be upgraded to unique for free are accepted - * @param premiumSubscription True, if a Telegram Premium subscription is accepted - */ + @Serializable data class AcceptedGiftTypes( @SerialName(unlimitedGiftsField) diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/gifts/UniqueGift.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/gifts/UniqueGift.kt index cf2e0dcf61..30f30c7e6e 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/gifts/UniqueGift.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/gifts/UniqueGift.kt @@ -4,16 +4,7 @@ import dev.inmo.tgbotapi.types.* import kotlinx.serialization.SerialName import kotlinx.serialization.Serializable -/** - * This object describes a unique gift that was upgraded from a regular gift. - * - * @param baseName Human-readable name of the regular gift from which this unique gift was upgraded - * @param name Unique name of the gift. This name can be used in `https://t.me/nft/...` links and story areas - * @param number Unique number of the upgraded gift among gifts upgraded from the same regular gift - * @param model Model of the gift - * @param symbol Symbol of the gift - * @param backdrop Backdrop of the gift - */ + @Serializable data class UniqueGift( @SerialName(baseNameField) diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/gifts/UniqueGiftBackdrop.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/gifts/UniqueGiftBackdrop.kt index bbe5d01aeb..22bd75b826 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/gifts/UniqueGiftBackdrop.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/gifts/UniqueGiftBackdrop.kt @@ -6,13 +6,7 @@ import dev.inmo.tgbotapi.types.rarityPerMilleField 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) diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/gifts/UniqueGiftBackdropColors.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/gifts/UniqueGiftBackdropColors.kt index 94bbc57e9a..fac98b28ed 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/gifts/UniqueGiftBackdropColors.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/gifts/UniqueGiftBackdropColors.kt @@ -8,14 +8,7 @@ import dev.inmo.tgbotapi.utils.RGBColor import kotlinx.serialization.SerialName import kotlinx.serialization.Serializable -/** - * This object describes the colors of the backdrop of a unique gift. - * - * @param centerColor The color in the center of the backdrop in RGB format - * @param edgeColor The color on the edges of the backdrop in RGB format - * @param symbolColor The color to be applied to the symbol in RGB format - * @param textColor The color for the text on the backdrop in RGB format - */ + @Serializable data class UniqueGiftBackdropColors( @SerialName(centerColorField) diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/gifts/UniqueGiftModel.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/gifts/UniqueGiftModel.kt index cc42a199c9..2f95e03a30 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/gifts/UniqueGiftModel.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/gifts/UniqueGiftModel.kt @@ -7,13 +7,7 @@ import dev.inmo.tgbotapi.types.stickerField 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) diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/gifts/UniqueGiftSymbol.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/gifts/UniqueGiftSymbol.kt index ee6796424b..3ce903732c 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/gifts/UniqueGiftSymbol.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/gifts/UniqueGiftSymbol.kt @@ -7,13 +7,7 @@ import dev.inmo.tgbotapi.types.stickerField import kotlinx.serialization.SerialName import kotlinx.serialization.Serializable -/** - * This object describes the symbol shown on the pattern of a unique gift. - * - * @param name Name of the symbol - * @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 UniqueGiftSymbol( @SerialName(nameField)