Class BotApiMethodSerializable
java.lang.Object
org.telegram.telegrambots.meta.api.methods.PartialBotApiMethod<T>
org.telegram.telegrambots.meta.api.methods.BotApiMethod<Serializable>
org.telegram.telegrambots.meta.api.methods.botapimethods.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 org.telegram.telegrambots.meta.api.methods.BotApiMethod
METHOD_FIELD
Fields inherited from class org.telegram.telegrambots.meta.api.methods.PartialBotApiMethod
OBJECT_MAPPER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserializeResponseFromPossibilities
(String answer, List<Class<? extends Serializable>> possibleValues) Methods inherited from class org.telegram.telegrambots.meta.api.methods.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
-