mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-21 15:53:47 +00:00
updated PaidMedia.Video.toTelegramPaidMediaVideo() converter function
This commit is contained in:
parent
f2fae9184f
commit
26b864a314
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user