Class BotApiMethodMessage
- java.lang.Object
-
- org.telegram.telegrambots.meta.api.methods.PartialBotApiMethod<T>
-
- org.telegram.telegrambots.meta.api.methods.BotApiMethod<Message>
-
- org.telegram.telegrambots.meta.api.methods.botapimethods.BotApiMethodMessage
-
- All Implemented Interfaces:
Validable
- Direct Known Subclasses:
ForwardMessage,SendContact,SendDice,SendGame,SendInvoice,SendLocation,SendMessage,SendPoll,SendVenue
public abstract class BotApiMethodMessage extends BotApiMethod<Message>
- 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 BotApiMethodMessage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MessagedeserializeResponse(String answer)Deserialize a json answer to the response type to a method-
Methods inherited from class org.telegram.telegrambots.meta.api.methods.BotApiMethod
getMethod
-
Methods inherited from class org.telegram.telegrambots.meta.api.methods.PartialBotApiMethod
deserializeResponse, deserializeResponseArray, deserializeResponseSerializable
-
-
-
-
Method Detail
-
deserializeResponse
public Message deserializeResponse(String answer) throws TelegramApiRequestException
Description copied from class:PartialBotApiMethodDeserialize a json answer to the response type to a method- Specified by:
deserializeResponsein classPartialBotApiMethod<Message>- Parameters:
answer- Json answer received- Returns:
- Answer for the method
- Throws:
TelegramApiRequestException
-
-