Class PartialBotApiMethod<T extends Serializable>
- java.lang.Object
-
- org.telegram.telegrambots.meta.api.methods.PartialBotApiMethod<T>
-
- All Implemented Interfaces:
Validable
- Direct Known Subclasses:
AddStickerToSet
,BotApiMethod
,CreateNewStickerSet
,EditMessageMedia
,SendAnimation
,SendAudio
,SendDocument
,SendMediaGroup
,SendPhoto
,SendSticker
,SendVideo
,SendVideoNote
,SendVoice
,SetChatPhoto
,UploadStickerFile
public abstract class PartialBotApiMethod<T extends Serializable> extends Object implements Validable
- Version:
- 1.0 Api method that can't be use completely as Json
- Author:
- Ruben Bermudez
-
-
Field Summary
Fields Modifier and Type Field Description protected static com.fasterxml.jackson.databind.ObjectMapper
OBJECT_MAPPER
-
Constructor Summary
Constructors Constructor Description PartialBotApiMethod()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract T
deserializeResponse(String answer)
Deserialize a json answer to the response type to a method
-
-
-
Method Detail
-
deserializeResponse
public abstract T deserializeResponse(String answer) throws TelegramApiRequestException
Deserialize a json answer to the response type to a method- Parameters:
answer
- Json answer received- Returns:
- Answer for the method
- Throws:
TelegramApiRequestException
-
-