mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-08 09:23:47 +00:00
Renamed extension function to reflect its functionality
This commit is contained in:
parent
f89849218a
commit
613f6de483
@ -1,11 +1,10 @@
|
||||
package dev.inmo.tgbotapi.types.message.payments
|
||||
|
||||
import dev.inmo.tgbotapi.types.media.TelegramMediaPhoto
|
||||
import dev.inmo.tgbotapi.types.media.TelegramPaidMedia
|
||||
import dev.inmo.tgbotapi.types.media.TelegramPaidMediaPhoto
|
||||
import dev.inmo.tgbotapi.types.media.TelegramPaidMediaVideo
|
||||
|
||||
fun PaidMedia.toTelegramPaidMedia(): TelegramPaidMedia? = when (this) {
|
||||
fun PaidMedia.toTelegramPaidMediaOrNull(): TelegramPaidMedia? = when (this) {
|
||||
is PaidMedia.Photo -> TelegramPaidMediaPhoto(
|
||||
file = this.photo.biggest.fileId
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user