toggle menu
ktgbotapi
common
switch theme
search in API
tgbotapi.core
/
dev.inmo.tgbotapi.types.message.payments
/
PaidMedia
/
Preview
Preview
@
Serializable
data
class
Preview
(
val
width
:
Int
?
=
null
,
val
height
:
Int
?
=
null
,
val
duration
:
Int
?
=
null
)
:
PaidMedia
Members
Members & Extensions
Constructors
Preview
Link copied to clipboard
constructor
(
width
:
Int
?
=
null
,
height
:
Int
?
=
null
,
duration
:
Int
?
=
null
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
duration
Link copied to clipboard
@
SerialName
(
value
=
"duration"
)
val
duration
:
Int
?
=
null
height
Link copied to clipboard
@
SerialName
(
value
=
"height"
)
val
height
:
Int
?
=
null
type
Link copied to clipboard
@
EncodeDefault
@
SerialName
(
value
=
"type"
)
open
override
val
type
:
String
width
Link copied to clipboard
@
SerialName
(
value
=
"width"
)
val
width
:
Int
?
=
null
Functions
to
Telegram
Paid
Media
Or
Null
Link copied to clipboard
fun
PaidMedia
.
toTelegramPaidMediaOrNull
(
)
:
TelegramPaidMedia
?