Package org.teleight.teleightbots.api
Interface MultiPartApiMethodMessage
- All Superinterfaces:
ApiMethod<Message>,MultiPartApiMethod<Message>
- All Known Implementing Classes:
EditMessageMedia,SendAnimation,SendAudio,SendDocument,SendMediaGroup,SendPaidMedia,SendPhoto,SendSticker,SendVideo,SendVideoNote,SendVoice
Interface representing a multipart API method that returns a Message.
-
Field Summary
Fields inherited from interface org.teleight.teleightbots.api.ApiMethod
OBJECT_MAPPER -
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull MessagedeserializeResponse(@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 Message deserializeResponse(@NotNull @NotNull String answer) throws TelegramRequestException Description copied from interface:ApiMethodDeserializes the response from the Telegram Bot API.- Specified by:
deserializeResponsein interfaceApiMethod<Message>- Parameters:
answer- the response from the Telegram Bot API- Returns:
- the deserialized response
- Throws:
TelegramRequestException- if an error occurs while deserializing the response
-