Package org.teleight.teleightbots.api
Interface ApiMethodMessage
- All Known Implementing Classes:
ForwardMessage,SendGame,SendInvoice,SendMessage
Represents a method that returns a message result.
-
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, getEndpointURL
-
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
-