mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2025-09-05 08:09:21 +00:00
updated PaidMedia.Video.toTelegramPaidMediaVideo() converter function
This commit is contained in:
@@ -16,7 +16,10 @@ fun PaidMedia.toTelegramPaidMediaOrNull(): TelegramPaidMedia? = when (this) {
|
||||
|
||||
fun PaidMedia.Video.toTelegramPaidMediaVideo(): TelegramPaidMediaVideo = TelegramPaidMediaVideo(
|
||||
file = this.video.fileId,
|
||||
duration = this.video.duration
|
||||
duration = this.video.duration,
|
||||
width = this.video.width,
|
||||
height = this.video.height,
|
||||
thumb = this.video.thumbnail?.fileId
|
||||
)
|
||||
|
||||
fun PaidMedia.Photo.toTelegramMediaPhoto(): TelegramPaidMediaPhoto = TelegramPaidMediaPhoto(
|
||||
|
Reference in New Issue
Block a user