mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2025-09-14 21:00:15 +00:00
add paid media into reply info
This commit is contained in:
@@ -89,6 +89,7 @@ sealed interface ReplyInfo {
|
||||
private val story: Story? = null,
|
||||
private val audio: AudioFile? = null,
|
||||
private val document: DocumentFile? = null,
|
||||
private val paid_media: PaidMediaInfo? = null,
|
||||
private val animation: AnimationFile? = null,
|
||||
private val game: RawGame? = null,
|
||||
@Serializable(PhotoSerializer::class)
|
||||
@@ -123,6 +124,7 @@ sealed interface ReplyInfo {
|
||||
video_note != null -> video_note
|
||||
animation != null -> animation
|
||||
document != null -> document
|
||||
paid_media != null -> paid_media
|
||||
voice != null -> voice
|
||||
photo != null -> photo
|
||||
sticker != null -> sticker
|
||||
|
@@ -1,5 +1,6 @@
|
||||
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.paidMediaField
|
||||
import dev.inmo.tgbotapi.types.starCountField
|
||||
@@ -12,4 +13,4 @@ data class PaidMediaInfo(
|
||||
val stars: Int,
|
||||
@SerialName(paidMediaField)
|
||||
val media: List<PaidMedia>
|
||||
)
|
||||
) : ReplyInfo.External.ContentVariant
|
||||
|
Reference in New Issue
Block a user