toggle menu
Telegram Bot
7.4.0
common
switch theme
search in API
Telegram Bot
/
eu.vendeli.tgbot.types.internal
/
Response
/
Success
Success
@
Serializable
@
SerialName
(
value
=
"true"
)
data
class
Success
<
T
>
(
val
result
:
T
)
:
Response
<
T
>
Members
Members & Extensions
Constructors
Success
Link copied to clipboard
constructor
(
result
:
T
)
Properties
ok
Link copied to clipboard
val
ok
:
Boolean
result
Link copied to clipboard
val
result
:
T
Functions
get
Or
Null
Link copied to clipboard
fun
<
T
>
Response
<
T
>
.
getOrNull
(
)
:
T
?
is
Success
Link copied to clipboard
fun
<
T
>
Response
<
T
>
.
isSuccess
(
)
:
Boolean
on
Failure
Link copied to clipboard
inline
fun
<
T
>
Response
<
T
>
.
onFailure
(
block
:
(
Response.Failure
)
->
Unit
)
:
T
?