PaidMedia

@Serializable
sealed class PaidMedia

This object describes paid media. Currently, it can be one of

  • PaidMediaPreview

  • PaidMediaPhoto

  • PaidMediaVideo

Api reference

Inheritors

Types

Link copied to clipboard
@Serializable
@SerialName(value = "photo")
data class Photo(val photo: List<PhotoSize>) : PaidMedia
Link copied to clipboard
@Serializable
@SerialName(value = "preview")
data class Preview(val width: Int?, val height: Int?, val duration: Int?) : PaidMedia
Link copied to clipboard
@Serializable
@SerialName(value = "video")
data class Video(val video: Video) : PaidMedia

Properties

Link copied to clipboard