ktgbotapi
Toggle table of contents
common
Platform filter
common
Switch theme
Search in API
ktgbotapi
tgbotapi.core
/
dev.inmo.tgbotapi.requests.gifts
/
GiftPremiumSubscription
Gift
Premium
Subscription
@
Serializable
data
class
GiftPremiumSubscription
:
SimpleRequest
<
Boolean
>
,
TextedOutput
Members
Constructors
Gift
Premium
Subscription
Link copied to clipboard
constructor
(
userId
:
UserId
,
monthCount
:
Int
,
starCount
:
Int
,
text
:
String
,
parseMode
:
ParseMode
?
)
constructor
(
userId
:
UserId
,
monthCount
:
Int
,
starCount
:
Int
,
textSources
:
TextSourcesList
?
=
null
)
Properties
entities
Link copied to clipboard
open
val
entities
:
List
<
TextSource
>
?
month
Count
Link copied to clipboard
@
SerialName
(
value
=
"month_count"
)
val
monthCount
:
Int
parse
Mode
Link copied to clipboard
@
SerialName
(
value
=
"text_parse_mode"
)
open
override
val
parseMode
:
ParseMode
?
=
null
request
Serializer
Link copied to clipboard
open
override
val
requestSerializer
:
SerializationStrategy
<
*
>
result
Deserializer
Link copied to clipboard
open
override
val
resultDeserializer
:
DeserializationStrategy
<
Boolean
>
star
Count
Link copied to clipboard
@
SerialName
(
value
=
"star_count"
)
val
starCount
:
Int
text
Link copied to clipboard
@
SerialName
(
value
=
"text"
)
open
override
val
text
:
String
?
=
null
text
Sources
Link copied to clipboard
open
override
val
textSources
:
TextSourcesList
?
Full list of TextSources
user
Id
Link copied to clipboard
@
SerialName
(
value
=
"user_id"
)
val
userId
:
UserId
Functions
method
Link copied to clipboard
open
override
fun
method
(
)
:
String