Interface ApiMethodString
- All Known Implementing Classes:
GetManagedBotToken, ReplaceManagedBotToken
-
Field Summary
Fields inherited from interface ApiMethod
OBJECT_MAPPER -
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull StringdeserializeResponse(@NotNull String answer) Deserializes the response from the Telegram Bot API.Methods inherited from interface ApiMethod
deserializeResponse, deserializeResponseArray, deserializeResponseSerializable, getEndpointURL
-
Method Details
-
deserializeResponse
@NotNull default @NotNull String deserializeResponse(@NotNull @NotNull String answer) throws TelegramRequestException Description copied from interface:ApiMethodDeserializes the response from the Telegram Bot API.- Specified by:
deserializeResponsein interfaceApiMethod<String>- Parameters:
answer- the response from the Telegram Bot API- Returns:
- the deserialized response
- Throws:
TelegramRequestException- if an error occurs while deserializing the response
-