Class BotApiMethodMessage
- All Implemented Interfaces:
Validable
- Direct Known Subclasses:
ForwardMessage
,SendContact
,SendDice
,SendGame
,SendInvoice
,SendLocation
,SendMessage
,SendPoll
,SendVenue
- Version:
- 1.0 A method of Telegram Bots Api that is fully supported in json format
- Author:
- Ruben Bermudez
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
BotApiMethodMessage.BotApiMethodMessageBuilder<C extends BotApiMethodMessage,
B extends BotApiMethodMessage.BotApiMethodMessageBuilder<C, B>> Nested classes/interfaces inherited from class BotApiMethod
BotApiMethod.BotApiMethodBuilder<T extends Serializable,
C extends BotApiMethod<T>, B extends BotApiMethod.BotApiMethodBuilder<T, C, B>> Nested classes/interfaces inherited from class PartialBotApiMethod
PartialBotApiMethod.PartialBotApiMethodBuilder<T extends Serializable,
C extends PartialBotApiMethod<T>, B extends PartialBotApiMethod.PartialBotApiMethodBuilder<T, C, B>> -
Field Summary
Fields inherited from class BotApiMethod
METHOD_FIELD
Fields inherited from class PartialBotApiMethod
OBJECT_MAPPER
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserializeResponse
(String answer) Deserialize a json answer to the response type to a methodMethods inherited from class PartialBotApiMethod
deserializeResponse, deserializeResponseArray, deserializeResponseSerializable, getMethod
-
Constructor Details
-
BotApiMethodMessage
public BotApiMethodMessage()
-
-
Method Details
-
deserializeResponse
Description copied from class:PartialBotApiMethod
Deserialize a json answer to the response type to a method- Specified by:
deserializeResponse
in classPartialBotApiMethod<Message>
- Parameters:
answer
- Json answer received- Returns:
- Answer for the method
- Throws:
TelegramApiRequestException
-