Interface MultiPartApiMethodMessage
- All Superinterfaces:
ApiMethod<Message>, MultiPartApiMethod<Message>
- All Known Implementing Classes:
EditMessageMedia, SendAnimation, SendAudio, SendDocument, SendLivePhoto, SendPaidMedia, SendPhoto, SendPoll, SendSticker, SendVideo, SendVideoNote, SendVoice
Interface representing a multipart API method that returns a Message.
-
Field Summary
Fields inherited from interface 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 ApiMethod
deserializeResponse, deserializeResponseArray, deserializeResponseSerializable, getEndpointURLMethods inherited from interface 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
-