toggle menu
Telegram Bot
7.5.0
common
switch theme
search in API
Telegram Bot
/
eu.vendeli.tgbot.types.internal
/
onFailure
on
Failure
inline
fun
<
T
>
Response
<
T
>
.
onFailure
(
block
:
(
Response.Failure
)
->
Unit
)
:
T
?
inline suspend
fun
<
T
>
Deferred
<
Response
<
out
T
>
>
.
onFailure
(
block
:
(
Response.Failure
)
->
Unit
)
:
T
?
Handles request's failure case.
Return
a fail-safe response.