mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2026-11-07 12:23:14 +00:00
add paid media into reply info
This commit is contained in:
1 parent
5baa09f0c1
commit
b27efd118b
3 files changed
+5
-2
No files matched your search
@@ -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