![JAR search and dependency download from the Maven repository](/logo.png)
telegramium.bots.PaidMedia.scala Maven / Gradle / Ivy
package telegramium.bots
sealed trait PaidMedia {}
/** The paid media is a video.
*
* @param video
* The video
*/
final case class PaidMediaVideo(video: Video) extends PaidMedia
/** The paid media is a photo.
*
* @param photo
* The photo
*/
final case class PaidMediaPhoto(photo: List[PhotoSize] = List.empty) extends PaidMedia
/** The paid media isn't available before the payment.
*
* @param width
* Optional. Media width as defined by the sender
* @param height
* Optional. Media height as defined by the sender
* @param duration
* Optional. Duration of the media in seconds as defined by the sender
*/
final case class PaidMediaPreview(
width: Option[Int] = Option.empty,
height: Option[Int] = Option.empty,
duration: Option[Int] = Option.empty
) extends PaidMedia
© 2015 - 2025 Weber Informatics LLC | Privacy Policy