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
public abstract class BotApiMethodSerializable extends BotApiMethod<Serializable>
- 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
Constructors Constructor Description BotApiMethodSerializable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SerializabledeserializeResponseFromPossibilities(String answer, List<Class<? extends Serializable>> possibleValues)SerializabledeserializeResponseMessageOrBoolean(String answer)-
Methods inherited from class org.telegram.telegrambots.meta.api.methods.BotApiMethod
getMethod
-
Methods inherited from class org.telegram.telegrambots.meta.api.methods.PartialBotApiMethod
deserializeResponse, deserializeResponse, deserializeResponseArray, deserializeResponseSerializable
-
-
-
-
Method Detail
-
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
-
-