PaidMedia

@Serializable(with = PaidMedia.Companion::class)
sealed interface PaidMedia

Inheritors

Types

Link copied to clipboard
object Companion : KSerializer<PaidMedia>
Link copied to clipboard
@Serializable
data class Photo(val photo: PhotoFile) : PaidMedia
Link copied to clipboard
@Serializable
data class Preview(val width: Int? = null, val height: Int? = null, val duration: Int? = null) : PaidMedia
Link copied to clipboard
@Serializable(with = PaidMedia.Companion::class)
data class Unknown(val type: String, val raw: JsonElement?) : PaidMedia
Link copied to clipboard
@Serializable
data class Video(val video: VideoFile) : PaidMedia

Properties

Link copied to clipboard
abstract val type: String