public class GetWebhookInfo extends BotApiMethod<WebhookInfo>
| Modifier and Type | Field and Description |
|---|---|
static String |
PATH |
METHOD_FIELDOBJECT_MAPPER| Constructor and Description |
|---|
GetWebhookInfo() |
| Modifier and Type | Method and Description |
|---|---|
WebhookInfo |
deserializeResponse(String answer)
Deserialize a json answer to the response type to a method
|
String |
getMethod()
Getter for method path (that is the same as method name)
|
String |
toString() |
void |
validate()
Validates that mandatory fields are filled and optional objects
|
public static final String PATH
public String getMethod()
BotApiMethodgetMethod in class BotApiMethod<WebhookInfo>public WebhookInfo deserializeResponse(String answer) throws TelegramApiRequestException
PartialBotApiMethoddeserializeResponse in class PartialBotApiMethod<WebhookInfo>answer - Json answer receivedTelegramApiRequestExceptionpublic void validate()
throws TelegramApiValidationException
ValidableTelegramApiValidationException - If any mandatory field is emptyCopyright © 2017. All rights reserved.