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:
@@ -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"
|
||||
|
@@ -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
|
||||
)
|
Reference in New Issue
Block a user