diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/payments/stars/TransactionPartner.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/payments/stars/TransactionPartner.kt index d3b1cd601e..11c1e20722 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/payments/stars/TransactionPartner.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/payments/stars/TransactionPartner.kt @@ -1,6 +1,8 @@ package dev.inmo.tgbotapi.types.payments.stars +import dev.inmo.tgbotapi.types.InvoicePayload import dev.inmo.tgbotapi.types.chat.PreviewUser +import dev.inmo.tgbotapi.types.invoicePayloadField import dev.inmo.tgbotapi.types.userField import dev.inmo.tgbotapi.types.withdrawalStateField import dev.inmo.tgbotapi.utils.decodeDataAndJson @@ -37,7 +39,9 @@ sealed interface TransactionPartner { @Serializable(TransactionPartner.Companion::class) data class User( @SerialName(userField) - val user: PreviewUser + val user: PreviewUser, + @SerialName(invoicePayloadField) + val invoicePayload: InvoicePayload? = null ) : TransactionPartner { override val type: String get() = Companion.type @@ -70,7 +74,8 @@ sealed interface TransactionPartner { private data class Surrogate( val type: String, val withdrawal_state: RevenueWithdrawalState? = null, - val user: PreviewUser? = null + val user: PreviewUser? = null, + val invoice_payload: InvoicePayload? = null ) override val descriptor: SerialDescriptor diff --git a/tgbotapi.webapps/src/jsMain/kotlin/dev/inmo/tgbotapi/webapps/ThemeParams.kt b/tgbotapi.webapps/src/jsMain/kotlin/dev/inmo/tgbotapi/webapps/ThemeParams.kt index e9d19c273a..754e6e881a 100644 --- a/tgbotapi.webapps/src/jsMain/kotlin/dev/inmo/tgbotapi/webapps/ThemeParams.kt +++ b/tgbotapi.webapps/src/jsMain/kotlin/dev/inmo/tgbotapi/webapps/ThemeParams.kt @@ -43,4 +43,6 @@ external interface ThemeParams { val subtitleTextColor: Color.Hex? @JsName("destructive_text_color") val destructiveTextColor: Color.Hex? + @JsName("section_separator_color") + val sectionSeparatorColor: Color.Hex? }