Class BotApiMethodSerializable
- All Implemented Interfaces:
Validable
- Direct Known Subclasses:
EditMessageCaption,EditMessageLiveLocation,EditMessageReplyMarkup,EditMessageText,SetGameScore,StopMessageLiveLocation
- Version:
- 1.0 A method of Telegram Bots Api that is fully supported in json format
- Author:
- Ruben Bermudez
-
Field Summary
Fields inherited from class BotApiMethod
METHOD_FIELDFields inherited from class PartialBotApiMethod
OBJECT_MAPPER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserializeResponseFromPossibilities(String answer, List<Class<? extends Serializable>> possibleValues) Methods inherited from class PartialBotApiMethod
deserializeResponse, deserializeResponse, deserializeResponseArray, deserializeResponseSerializable, getMethod
-
Constructor Details
-
BotApiMethodSerializable
public BotApiMethodSerializable()
-
-
Method Details
-
deserializeResponseMessageOrBoolean
public Serializable deserializeResponseMessageOrBoolean(String answer) throws TelegramApiRequestException - Throws:
TelegramApiRequestException
-
deserializeResponseFromPossibilities
public Serializable deserializeResponseFromPossibilities(String answer, List<Class<? extends Serializable>> possibleValues) throws TelegramApiRequestException - Throws:
TelegramApiRequestException
-