Package org.teleight.teleightbots.api
Interface MultiPartApiMethodBoolean
- All Superinterfaces:
ApiMethod<Boolean>,MultiPartApiMethod<Boolean>
- All Known Implementing Classes:
AddStickerToSet,CreateNewStickerSet,ReplaceStickerInSet,SetBusinessAccountProfilePhoto,SetChatPhoto,SetMyProfilePhoto,SetStickerSetThumbnail,SetWebhook
Interface representing a multipart API method that returns a Boolean.
-
Field Summary
Fields inherited from interface org.teleight.teleightbots.api.ApiMethod
OBJECT_MAPPER -
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull BooleandeserializeResponse(@NotNull String answer) Deserializes the response from the Telegram Bot API.Methods inherited from interface org.teleight.teleightbots.api.ApiMethod
deserializeResponse, deserializeResponseArray, deserializeResponseSerializable, getEndpointURLMethods inherited from interface org.teleight.teleightbots.api.MultiPartApiMethod
getParameters
-
Method Details
-
deserializeResponse
@NotNull default @NotNull Boolean deserializeResponse(@NotNull @NotNull String answer) throws TelegramRequestException Description copied from interface:ApiMethodDeserializes the response from the Telegram Bot API.- Specified by:
deserializeResponsein interfaceApiMethod<Boolean>- Parameters:
answer- the response from the Telegram Bot API- Returns:
- the deserialized response
- Throws:
TelegramRequestException- if an error occurs while deserializing the response
-