public interface SentCallback<T extends Serializable>
| Modifier and Type | Method and Description |
|---|---|
void |
onError(BotApiMethod<T> method,
TelegramApiRequestException apiException)
Called when the request fails
|
void |
onException(BotApiMethod<T> method,
Exception exception)
Called when the http request throw an exception
|
void |
onResult(BotApiMethod<T> method,
T response)
Called when the request is successful
|
void onResult(BotApiMethod<T> method, T response)
method - Method executedresponse - Answer from Telegram servervoid onError(BotApiMethod<T> method, TelegramApiRequestException apiException)
method - Method executedapiException - Answer from Telegram server (contains error information)void onException(BotApiMethod<T> method, Exception exception)
method - Method executedexception - Excepction thrownCopyright © 2016. All rights reserved.