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

feat: Add UniqueGiftBackdropColors data class

This commit is contained in:
bpavuk (aider)
2025-04-13 14:26:55 +03:00
committed by bpavuk
parent 99559f477e
commit cd3ba8f480
2 changed files with 29 additions and 0 deletions

View File

@@ -666,6 +666,11 @@ const val upgradeStarCountField = "upgrade_star_count"
const val payToUpgradeField = "pay_for_upgrade"
const val paidMediaField = "paid_media"
const val centerColorField = "center_color"
const val edgeColorField = "edge_color"
const val symbolColorField = "symbol_color"
const val textColorField = "text_color"
const val businessConnectionIdField = "business_connection_id"
const val businessIntroField = "business_intro"
const val businessLocationField = "business_location"

View File

@@ -0,0 +1,24 @@
package dev.inmo.tgbotapi.types
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)
val centerColor: Int,
@SerialName(edgeColorField)
val edgeColor: Int,
@SerialName(symbolColorField)
val symbolColor: Int,
@SerialName(textColorField)
val textColor: Int
)