Class BotApiMethodBoolean
java.lang.Object
org.telegram.telegrambots.meta.api.methods.PartialBotApiMethod<T>
org.telegram.telegrambots.meta.api.methods.BotApiMethod<Boolean>
org.telegram.telegrambots.meta.api.methods.botapimethods.BotApiMethodBoolean
- All Implemented Interfaces:
Validable
- Direct Known Subclasses:
AnswerCallbackQuery,AnswerInlineQuery,AnswerPreCheckoutQuery,AnswerShippingQuery,ApproveChatJoinRequest,BanChatMember,BanChatSenderChat,Close,CloseForumTopic,CloseGeneralForumTopic,DeclineChatJoinRequest,DeleteChatPhoto,DeleteChatStickerSet,DeleteForumTopic,DeleteMessage,DeleteMyCommands,DeleteStickerFromSet,DeleteWebhook,EditForumTopic,EditGeneralForumTopic,HideGeneralForumTopic,LeaveChat,LogOut,PinChatMessage,PromoteChatMember,ReopenForumTopic,ReopenGeneralForumTopic,RestrictChatMember,SendChatAction,SetChatAdministratorCustomTitle,SetChatDescription,SetChatMenuButton,SetChatPermissions,SetChatStickerSet,SetChatTitle,SetCustomEmojiStickerSetThumbnail,SetMyCommands,SetMyDefaultAdministratorRights,SetMyDescription,SetMyShortDescription,SetPassportDataErrors,SetStickerPositionInSet,SetStickerSetThumb,SetWebhook,UnbanChatMember,UnbanChatSenderChat,UnhideGeneralForumTopic,UnpinAllChatMessages,UnpinAllForumTopicMessages,UnpinChatMessage
- 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_FIELDFields inherited from class org.telegram.telegrambots.meta.api.methods.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 org.telegram.telegrambots.meta.api.methods.PartialBotApiMethod
deserializeResponse, deserializeResponseArray, deserializeResponseSerializable, getMethod
-
Constructor Details
-
BotApiMethodBoolean
public BotApiMethodBoolean()
-
-
Method Details
-
deserializeResponse
Description copied from class:PartialBotApiMethodDeserialize a json answer to the response type to a method- Specified by:
deserializeResponsein classPartialBotApiMethod<Boolean>- Parameters:
answer- Json answer received- Returns:
- Answer for the method
- Throws:
TelegramApiRequestException
-