mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-09 09:53:47 +00:00
add paid media into reply info
This commit is contained in:
parent
5baa09f0c1
commit
b27efd118b
@ -16738,7 +16738,7 @@ public abstract interface class dev/inmo/tgbotapi/types/files/MediaContentVarian
|
|||||||
public abstract interface class dev/inmo/tgbotapi/types/files/MimedMediaFile : dev/inmo/tgbotapi/abstracts/MimeTyped, dev/inmo/tgbotapi/types/files/TelegramMediaFile {
|
public abstract interface class dev/inmo/tgbotapi/types/files/MimedMediaFile : dev/inmo/tgbotapi/abstracts/MimeTyped, dev/inmo/tgbotapi/types/files/TelegramMediaFile {
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/types/files/PaidMediaInfo {
|
public final class dev/inmo/tgbotapi/types/files/PaidMediaInfo : dev/inmo/tgbotapi/types/ReplyInfo$External$ContentVariant {
|
||||||
public static final field Companion Ldev/inmo/tgbotapi/types/files/PaidMediaInfo$Companion;
|
public static final field Companion Ldev/inmo/tgbotapi/types/files/PaidMediaInfo$Companion;
|
||||||
public fun <init> (ILjava/util/List;)V
|
public fun <init> (ILjava/util/List;)V
|
||||||
public final fun component1 ()I
|
public final fun component1 ()I
|
||||||
|
@ -89,6 +89,7 @@ sealed interface ReplyInfo {
|
|||||||
private val story: Story? = null,
|
private val story: Story? = null,
|
||||||
private val audio: AudioFile? = null,
|
private val audio: AudioFile? = null,
|
||||||
private val document: DocumentFile? = null,
|
private val document: DocumentFile? = null,
|
||||||
|
private val paid_media: PaidMediaInfo? = null,
|
||||||
private val animation: AnimationFile? = null,
|
private val animation: AnimationFile? = null,
|
||||||
private val game: RawGame? = null,
|
private val game: RawGame? = null,
|
||||||
@Serializable(PhotoSerializer::class)
|
@Serializable(PhotoSerializer::class)
|
||||||
@ -123,6 +124,7 @@ sealed interface ReplyInfo {
|
|||||||
video_note != null -> video_note
|
video_note != null -> video_note
|
||||||
animation != null -> animation
|
animation != null -> animation
|
||||||
document != null -> document
|
document != null -> document
|
||||||
|
paid_media != null -> paid_media
|
||||||
voice != null -> voice
|
voice != null -> voice
|
||||||
photo != null -> photo
|
photo != null -> photo
|
||||||
sticker != null -> sticker
|
sticker != null -> sticker
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package dev.inmo.tgbotapi.types.files
|
package dev.inmo.tgbotapi.types.files
|
||||||
|
|
||||||
|
import dev.inmo.tgbotapi.types.ReplyInfo
|
||||||
import dev.inmo.tgbotapi.types.message.payments.PaidMedia
|
import dev.inmo.tgbotapi.types.message.payments.PaidMedia
|
||||||
import dev.inmo.tgbotapi.types.paidMediaField
|
import dev.inmo.tgbotapi.types.paidMediaField
|
||||||
import dev.inmo.tgbotapi.types.starCountField
|
import dev.inmo.tgbotapi.types.starCountField
|
||||||
@ -12,4 +13,4 @@ data class PaidMediaInfo(
|
|||||||
val stars: Int,
|
val stars: Int,
|
||||||
@SerialName(paidMediaField)
|
@SerialName(paidMediaField)
|
||||||
val media: List<PaidMedia>
|
val media: List<PaidMedia>
|
||||||
)
|
) : ReplyInfo.External.ContentVariant
|
||||||
|
Loading…
Reference in New Issue
Block a user