Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bot API 7.6 #872

Merged
merged 5 commits into from
Jul 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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?
}