public abstract class AbsSender extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
AbsSender() |
public <T extends Serializable,Method extends BotApiMethod<T>,Callback extends SentCallback<T>> void executeAsync(Method method, Callback callback) throws TelegramApiException
TelegramApiExceptionpublic <T extends Serializable,Method extends BotApiMethod<T>> T execute(Method method) throws TelegramApiException
TelegramApiExceptionpublic final Message sendMessage(SendMessage sendMessage) throws TelegramApiException
TelegramApiExceptionpublic final Boolean answerInlineQuery(AnswerInlineQuery answerInlineQuery) throws TelegramApiException
TelegramApiExceptionpublic final Boolean sendChatAction(SendChatAction sendChatAction) throws TelegramApiException
TelegramApiExceptionpublic final Message forwardMessage(ForwardMessage forwardMessage) throws TelegramApiException
TelegramApiExceptionpublic final Message sendLocation(SendLocation sendLocation) throws TelegramApiException
TelegramApiExceptionpublic final Message sendVenue(SendVenue sendVenue) throws TelegramApiException
TelegramApiExceptionpublic final Message sendContact(SendContact sendContact) throws TelegramApiException
TelegramApiExceptionpublic final Boolean kickMember(KickChatMember kickChatMember) throws TelegramApiException
TelegramApiExceptionpublic final Boolean unbanMember(UnbanChatMember unbanChatMember) throws TelegramApiException
TelegramApiExceptionpublic final Boolean leaveChat(LeaveChat leaveChat) throws TelegramApiException
TelegramApiExceptionpublic final Chat getChat(GetChat getChat) throws TelegramApiException
TelegramApiExceptionpublic final String exportChatInviteLink(ExportChatInviteLink exportChatInviteLink) throws TelegramApiException
TelegramApiExceptionpublic final List<ChatMember> getChatAdministrators(GetChatAdministrators getChatAdministrators) throws TelegramApiException
TelegramApiExceptionpublic final ChatMember getChatMember(GetChatMember getChatMember) throws TelegramApiException
TelegramApiExceptionpublic final Integer getChatMemberCount(GetChatMemberCount getChatMemberCount) throws TelegramApiException
TelegramApiExceptionpublic final Serializable editMessageText(EditMessageText editMessageText) throws TelegramApiException
TelegramApiExceptionpublic final Serializable editMessageCaption(EditMessageCaption editMessageCaption) throws TelegramApiException
TelegramApiExceptionpublic final Serializable editMessageReplyMarkup(EditMessageReplyMarkup editMessageReplyMarkup) throws TelegramApiException
TelegramApiExceptionpublic final Boolean answerCallbackQuery(AnswerCallbackQuery answerCallbackQuery) throws TelegramApiException
TelegramApiExceptionpublic final UserProfilePhotos getUserProfilePhotos(GetUserProfilePhotos getUserProfilePhotos) throws TelegramApiException
TelegramApiExceptionpublic final File getFile(GetFile getFile) throws TelegramApiException
TelegramApiExceptionpublic final User getMe() throws TelegramApiException
TelegramApiExceptionpublic final WebhookInfo getWebhookInfo() throws TelegramApiException
TelegramApiExceptionpublic final Serializable setGameScore(SetGameScore setGameScore) throws TelegramApiException
TelegramApiExceptionpublic final Serializable getGameHighScores(GetGameHighScores getGameHighScores) throws TelegramApiException
TelegramApiExceptionpublic final Message sendGame(SendGame sendGame) throws TelegramApiException
TelegramApiExceptionpublic final Boolean deleteWebhook(DeleteWebhook deleteWebhook) throws TelegramApiException
TelegramApiExceptionpublic final Message sendInvoice(SendInvoice sendInvoice) throws TelegramApiException
TelegramApiExceptionpublic final Boolean answerShippingQuery(AnswerShippingQuery answerShippingQuery) throws TelegramApiException
TelegramApiExceptionpublic final Boolean answerPreCheckoutQuery(AnswerPreCheckoutQuery answerPreCheckoutQuery) throws TelegramApiException
TelegramApiExceptionpublic final Boolean deleteMessage(DeleteMessage deleteMessage) throws TelegramApiException
TelegramApiExceptionpublic final Boolean deleteChatPhoto(DeleteChatPhoto deleteChatPhoto) throws TelegramApiException
TelegramApiExceptionpublic final Boolean pinChatMessage(PinChatMessage pinChatMessage) throws TelegramApiException
TelegramApiExceptionpublic final Boolean unpinChatMessage(UnpinChatMessage unpinChatMessage) throws TelegramApiException
TelegramApiExceptionpublic final Boolean promoteChatMember(PromoteChatMember promoteChatMember) throws TelegramApiException
TelegramApiExceptionpublic final Boolean restrictChatMember(RestrictChatMember restrictChatMember) throws TelegramApiException
TelegramApiExceptionpublic final Boolean setChatDescription(SetChatDescription setChatDescription) throws TelegramApiException
TelegramApiExceptionpublic final Boolean setChatTitle(SetChatTitle setChatTitle) throws TelegramApiException
TelegramApiExceptionpublic final void sendMessageAsync(SendMessage sendMessage, SentCallback<Message> sentCallback) throws TelegramApiException
TelegramApiExceptionpublic final void answerInlineQueryAsync(AnswerInlineQuery answerInlineQuery, SentCallback<Boolean> sentCallback) throws TelegramApiException
TelegramApiExceptionpublic final void sendChatActionAsync(SendChatAction sendChatAction, SentCallback<Boolean> sentCallback) throws TelegramApiException
TelegramApiExceptionpublic final void forwardMessageAsync(ForwardMessage forwardMessage, SentCallback<Message> sentCallback) throws TelegramApiException
TelegramApiExceptionpublic final void sendLocationAsync(SendLocation sendLocation, SentCallback<Message> sentCallback) throws TelegramApiException
TelegramApiExceptionpublic final void sendVenueAsync(SendVenue sendVenue, SentCallback<Message> sentCallback) throws TelegramApiException
TelegramApiExceptionpublic final void sendContactAsync(SendContact sendContact, SentCallback<Message> sentCallback) throws TelegramApiException
TelegramApiExceptionpublic final void kickMemberAsync(KickChatMember kickChatMember, SentCallback<Boolean> sentCallback) throws TelegramApiException
TelegramApiExceptionpublic final void unbanMemberAsync(UnbanChatMember unbanChatMember, SentCallback<Boolean> sentCallback) throws TelegramApiException
TelegramApiExceptionpublic final void leaveChatAsync(LeaveChat leaveChat, SentCallback<Boolean> sentCallback) throws TelegramApiException
TelegramApiExceptionpublic final void getChatAsync(GetChat getChat, SentCallback<Chat> sentCallback) throws TelegramApiException
TelegramApiExceptionpublic final void exportChatInviteLinkAsync(ExportChatInviteLink exportChatInviteLink, SentCallback<String> sentCallback) throws TelegramApiException
TelegramApiExceptionpublic final void getChatAdministratorsAsync(GetChatAdministrators getChatAdministrators, SentCallback<ArrayList<ChatMember>> sentCallback) throws TelegramApiException
TelegramApiExceptionpublic final void getChatMemberAsync(GetChatMember getChatMember, SentCallback<ChatMember> sentCallback) throws TelegramApiException
TelegramApiExceptionpublic final void getChatMemberCountAsync(GetChatMemberCount getChatMemberCount, SentCallback<Integer> sentCallback) throws TelegramApiException
TelegramApiExceptionpublic final void editMessageTextAsync(EditMessageText editMessageText, SentCallback<Serializable> sentCallback) throws TelegramApiException
TelegramApiExceptionpublic final void editMessageCaptionAsync(EditMessageCaption editMessageCaption, SentCallback<Serializable> sentCallback) throws TelegramApiException
TelegramApiExceptionpublic final void editMessageReplyMarkup(EditMessageReplyMarkup editMessageReplyMarkup, SentCallback<Serializable> sentCallback) throws TelegramApiException
TelegramApiExceptionpublic final void answerCallbackQueryAsync(AnswerCallbackQuery answerCallbackQuery, SentCallback<Boolean> sentCallback) throws TelegramApiException
TelegramApiExceptionpublic final void getUserProfilePhotosAsync(GetUserProfilePhotos getUserProfilePhotos, SentCallback<UserProfilePhotos> sentCallback) throws TelegramApiException
TelegramApiExceptionpublic final void getFileAsync(GetFile getFile, SentCallback<File> sentCallback) throws TelegramApiException
TelegramApiExceptionpublic final void getMeAsync(SentCallback<User> sentCallback) throws TelegramApiException
TelegramApiExceptionpublic final void getWebhookInfoAsync(SentCallback<WebhookInfo> sentCallback) throws TelegramApiException
TelegramApiExceptionpublic final void setGameScoreAsync(SetGameScore setGameScore, SentCallback<Serializable> sentCallback) throws TelegramApiException
TelegramApiExceptionpublic final void getGameHighScoresAsync(GetGameHighScores getGameHighScores, SentCallback<ArrayList<GameHighScore>> sentCallback) throws TelegramApiException
TelegramApiExceptionpublic final void sendGameAsync(SendGame sendGame, SentCallback<Message> sentCallback) throws TelegramApiException
TelegramApiExceptionpublic final void deleteWebhook(DeleteWebhook deleteWebhook, SentCallback<Boolean> sentCallback) throws TelegramApiException
TelegramApiExceptionpublic final void sendInvoice(SendInvoice sendInvoice, SentCallback<Message> sentCallback) throws TelegramApiException
TelegramApiExceptionpublic final void answerShippingQuery(AnswerShippingQuery answerShippingQuery, SentCallback<Boolean> sentCallback) throws TelegramApiException
TelegramApiExceptionpublic final void answerPreCheckoutQuery(AnswerPreCheckoutQuery answerPreCheckoutQuery, SentCallback<Boolean> sentCallback) throws TelegramApiException
TelegramApiExceptionpublic final void deleteMessage(DeleteMessage deleteMessage, SentCallback<Boolean> sentCallback) throws TelegramApiException
TelegramApiExceptionpublic final void deleteChatPhoto(DeleteChatPhoto deleteChatPhoto, SentCallback<Boolean> sentCallback) throws TelegramApiException
TelegramApiExceptionpublic final void pinChatMessage(PinChatMessage pinChatMessage, SentCallback<Boolean> sentCallback) throws TelegramApiException
TelegramApiExceptionpublic final void unpinChatMessage(UnpinChatMessage unpinChatMessage, SentCallback<Boolean> sentCallback) throws TelegramApiException
TelegramApiExceptionpublic final void promoteChatMember(PromoteChatMember promoteChatMember, SentCallback<Boolean> sentCallback) throws TelegramApiException
TelegramApiExceptionpublic final void restrictChatMember(RestrictChatMember restrictChatMember, SentCallback<Boolean> sentCallback) throws TelegramApiException
TelegramApiExceptionpublic final void setChatDescription(SetChatDescription setChatDescription, SentCallback<Boolean> sentCallback) throws TelegramApiException
TelegramApiExceptionpublic final void setChatTitle(SetChatTitle setChatTitle, SentCallback<Boolean> sentCallback) throws TelegramApiException
TelegramApiExceptionpublic abstract Message sendDocument(SendDocument sendDocument) throws TelegramApiException
TelegramApiExceptionpublic abstract Message sendPhoto(SendPhoto sendPhoto) throws TelegramApiException
TelegramApiExceptionpublic abstract Message sendVideo(SendVideo sendVideo) throws TelegramApiException
TelegramApiExceptionpublic abstract Message sendVideoNote(SendVideoNote sendVideoNote) throws TelegramApiException
TelegramApiExceptionpublic abstract Message sendSticker(SendSticker sendSticker) throws TelegramApiException
TelegramApiExceptionpublic abstract Message sendAudio(SendAudio sendAudio) throws TelegramApiException
sendAudio - Information to sendTelegramApiException - If there is any error sending the audiopublic abstract Message sendVoice(SendVoice sendVoice) throws TelegramApiException
sendVoice - Information to sendTelegramApiException - If there is any error sending the audiopublic abstract Boolean setChatPhoto(SetChatPhoto setChatPhoto) throws TelegramApiException
setChatPhoto - Information to set the photoTelegramApiException - If there is any error setting the photo.protected abstract <T extends Serializable,Method extends BotApiMethod<T>,Callback extends SentCallback<T>> void sendApiMethodAsync(Method method, Callback callback)
protected abstract <T extends Serializable,Method extends BotApiMethod<T>> T sendApiMethod(Method method) throws TelegramApiException
TelegramApiExceptionCopyright © 2017. All rights reserved.