toggle menu
ktgbotapi
common
switch theme
search in API
tgbotapi.core
/
dev.inmo.tgbotapi.requests.send.payments
Package-level
declarations
Types
Types
Create
Invoice
Link
Link copied to clipboard
@
Serializable
data
class
CreateInvoiceLink
(
val
title
:
String
,
val
description
:
String
,
val
payload
:
String
,
val
providerToken
:
String
?
,
val
currency
:
Currency
,
val
businessConnectionId
:
BusinessConnectionId
?
=
null
,
val
prices
:
List
<
LabeledPrice
>
,
val
subscriptionPeriod
:
TimeSpan
?
=
null
,
val
maxTipAmount
:
Int
?
=
null
,
val
suggestedTipAmounts
:
List
<
Int
>
?
=
null
,
val
providerData
:
String
?
=
null
,
val
requireName
:
Boolean
=
false
,
val
requirePhoneNumber
:
Boolean
=
false
,
val
requireEmail
:
Boolean
=
false
,
val
requireShippingAddress
:
Boolean
=
false
,
val
shouldSendPhoneNumberToProvider
:
Boolean
=
false
,
val
shouldSendEmailToProvider
:
Boolean
=
false
,
val
priceDependOnShipAddress
:
Boolean
=
false
)
:
CommonSendInvoiceData
,
SimpleRequest
<
String
>
,
WithOptionalBusinessConnectionId
,
SubscriptionPeriodInfo
Refund
Star
Payment
Link copied to clipboard
@
Serializable
data
class
RefundStarPayment
(
val
userId
:
UserId
,
val
telegramPaymentChargeId
:
TelegramPaymentChargeId
)
:
SimpleRequest
<
Boolean
>
Send
Invoice
Link copied to clipboard
@
Serializable
data
class
SendInvoice
(
val
chatId
:
IdChatIdentifier
,
val
title
:
String
,
val
description
:
String
,
val
payload
:
String
,
val
providerToken
:
String
?
,
val
currency
:
Currency
,
val
prices
:
List
<
LabeledPrice
>
,
val
maxTipAmount
:
Int
?
=
null
,
val
suggestedTipAmounts
:
List
<
Int
>
?
=
null
,
val
startParameter
:
StartParameter
?
=
null
,
val
providerData
:
String
?
=
null
,
val
requireName
:
Boolean
=
false
,
val
requirePhoneNumber
:
Boolean
=
false
,
val
requireEmail
:
Boolean
=
false
,
val
requireShippingAddress
:
Boolean
=
false
,
val
shouldSendPhoneNumberToProvider
:
Boolean
=
false
,
val
shouldSendEmailToProvider
:
Boolean
=
false
,
val
priceDependOnShipAddress
:
Boolean
=
false
,
val
threadId
:
MessageThreadId
?
=
chatId.threadId
,
val
disableNotification
:
Boolean
=
false
,
val
protectContent
:
Boolean
=
false
,
val
allowPaidBroadcast
:
Boolean
=
false
,
val
effectId
:
EffectId
?
=
null
,
val
replyParameters
:
ReplyParameters
?
=
null
,
val
replyMarkup
:
InlineKeyboardMarkup
?
=
null
)
:
CommonSendInvoiceData
,
ChatRequest
,
DisableNotification
,
WithReplyParameters
,
WithReplyMarkup
,
SendMessageRequest
<
ContentMessage
<
InvoiceContent
>
>
,
OptionallyWithEffectRequest
<
ContentMessage
<
InvoiceContent
>
>