1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-21 15:53:47 +00:00

Merge pull request #872 from bpavuk/bot-api-7.6

Bot API 7.6
This commit is contained in:
InsanusMokrassar 2024-07-09 16:54:06 +06:00 committed by GitHub
commit 236f484e10
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 2 deletions

View File

@ -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

View File

@ -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?
}