Package org.teleight.teleightbots.api
Interface ApiMethodBoolean
- All Known Implementing Classes:
AnswerCallbackQuery,AnswerInlineQuery,AnswerPreCheckoutQuery,AnswerShippingQuery,ApproveChatJoinRequest,ApproveSuggestedPost,BanChatMember,BanChatSenderChat,BatchDeleteMessages,CloseForumTopic,CloseGeneralForumTopic,ConvertGiftToStars,CopyTextButton,CreateInvoiceLink,DeclineChatJoinRequest,DeclineSuggestedPost,DeleteBusinessMessages,DeleteChatPhoto,DeleteChatStickerSet,DeleteForumTopic,DeleteMessage,DeleteMyCommands,DeleteStickerFromSet,DeleteStickerSet,DeleteStory,DeleteWebhook,EditChatInviteLink,EditForumTopic,EditGeneralForumTopic,EditUserStarSubscription,ExportChatInviteLink,GiftPremiumSubscription,HideGeneralForumTopic,LeaveChat,PinChatMessage,PromoteChatMember,ReadBusinessMessage,RefundStarPayment,RemoveBusinessAccountProfilePhoto,RemoveChatVerification,RemoveMyProfilePhoto,RemoveUserVerification,ReopenForumTopic,ReopenGeneralForumTopic,RestrictChatMember,RevokeChatInviteLink,SendChatAction,SendGift,SendMessageDraft,SetBusinessAccountBio,SetBusinessAccountGiftSettings,SetBusinessAccountName,SetBusinessAccountUsername,SetChatAdministratorCustomTitle,SetChatDescription,SetChatMenuButton,SetChatPermissions,SetChatStickerSet,SetChatTitle,SetCustomEmojiStickerSetThumbnail,SetMessageReaction,SetMyCommands,SetMyDefaultAdministratorRights,SetMyDescription,SetMyName,SetMyShortDescription,SetPassportDataErrors,SetStickerEmojiList,SetStickerKeywords,SetStickerMaskPosition,SetStickerPositionInSet,SetStickerSetTitle,SetUserEmojiStatus,TransferBusinessAccountStars,TransferGift,UnbanChatMember,UnbanChatSenderChat,UnhideGeneralForumTopic,UnpinAllChatMessages,UnpinAllForumTopicMessages,UnpinAllGeneralForumTopicMessages,UnpinChatMessage,UpgradeGift,VerifyChat,VerifyUser
Represents a method that returns a boolean result.
-
Field Summary
Fields inherited from interface org.teleight.teleightbots.api.ApiMethod
OBJECT_MAPPER -
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull BooleandeserializeResponse(@NotNull String answer) Deserializes the response from the Telegram Bot API.Methods inherited from interface org.teleight.teleightbots.api.ApiMethod
deserializeResponse, deserializeResponseArray, deserializeResponseSerializable, getEndpointURL
-
Method Details
-
deserializeResponse
@NotNull default @NotNull Boolean deserializeResponse(@NotNull @NotNull String answer) throws TelegramRequestException Description copied from interface:ApiMethodDeserializes the response from the Telegram Bot API.- Specified by:
deserializeResponsein interfaceApiMethod<Boolean>- Parameters:
answer- the response from the Telegram Bot API- Returns:
- the deserialized response
- Throws:
TelegramRequestException- if an error occurs while deserializing the response
-