toggle menu
Telegram Bot
7.6.2
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
?
Get response or null on failure.
is
Success
Link copied to clipboard
fun
<
T
>
Response
<
T
>
.
isSuccess
(
)
:
Boolean
Whether the request completed successfully.
on
Failure
Link copied to clipboard
inline
fun
<
T
>
Response
<
T
>
.
onFailure
(
block
:
(
Response.Failure
)
->
Unit
)
:
T
?