toggle menu
ktgbotapi
common
switch theme
search in API
tgbotapi.core
/
dev.inmo.tgbotapi.types.message.payments
Package-level
declarations
Types
Functions
Types
Paid
Media
Link copied to clipboard
@
Serializable
(
with
=
PaidMedia.Companion::class
)
sealed
interface
PaidMedia
Paid
Media
Purchased
Link copied to clipboard
@
Serializable
data
class
PaidMediaPurchased
(
val
from
:
User
,
val
payload
:
PaidMediaPayload
)
:
FromUser
Refunded
Payment
Event
Link copied to clipboard
data
class
RefundedPaymentEvent
(
val
payment
:
RefundedPayment
)
:
PaymentInfo
,
CommonEvent
Successful
Payment
Event
Link copied to clipboard
data
class
SuccessfulPaymentEvent
(
val
payment
:
SuccessfulPayment
)
:
PaymentInfo
,
CommonEvent
Functions
to
Telegram
Media
Photo
Link copied to clipboard
fun
PaidMedia.Photo
.
toTelegramMediaPhoto
(
)
:
TelegramPaidMediaPhoto
to
Telegram
Paid
Media
Or
Null
Link copied to clipboard
fun
PaidMedia
.
toTelegramPaidMediaOrNull
(
)
:
TelegramPaidMedia
?
to
Telegram
Paid
Media
Video
Link copied to clipboard
fun
PaidMedia.Video
.
toTelegramPaidMediaVideo
(
)
:
TelegramPaidMediaVideo