toggle menu
ktgbotapi
common
switch theme
search in API
tgbotapi.core
/
dev.inmo.tgbotapi.types.message.payments
/
PaidMedia
Paid
Media
@
Serializable
(
with
=
PaidMedia.Companion::class
)
sealed
interface
PaidMedia
Inheritors
Preview
Photo
Video
Unknown
Members
Members & Extensions
Types
Companion
Link copied to clipboard
object
Companion
:
KSerializer
<
PaidMedia
>
Photo
Link copied to clipboard
@
Serializable
data
class
Photo
(
val
photo
:
PhotoFile
)
:
PaidMedia
Preview
Link copied to clipboard
@
Serializable
data
class
Preview
(
val
width
:
Int
?
=
null
,
val
height
:
Int
?
=
null
,
val
duration
:
Int
?
=
null
)
:
PaidMedia
Unknown
Link copied to clipboard
@
Serializable
(
with
=
PaidMedia.Companion::class
)
data
class
Unknown
(
val
type
:
String
,
val
raw
:
JsonElement
?
)
:
PaidMedia
Video
Link copied to clipboard
@
Serializable
data
class
Video
(
val
video
:
VideoFile
)
:
PaidMedia
Properties
type
Link copied to clipboard
abstract
val
type
:
String
Functions
to
Telegram
Paid
Media
Or
Null
Link copied to clipboard
fun
PaidMedia
.
toTelegramPaidMediaOrNull
(
)
:
TelegramPaidMedia
?