public abstract class AbsSender extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
AbsSender() |
public 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 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 Message editMessageText(EditMessageText editMessageText) throws TelegramApiException
TelegramApiExceptionpublic final Message editMessageCaption(EditMessageCaption editMessageCaption) throws TelegramApiException
TelegramApiExceptionpublic final Message 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 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 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<Message> sentCallback) throws TelegramApiException
TelegramApiExceptionpublic final void editMessageCaptionAsync(EditMessageCaption editMessageCaption, SentCallback<Message> sentCallback) throws TelegramApiException
TelegramApiExceptionpublic final void editMessageReplyMarkup(EditMessageReplyMarkup editMessageReplyMarkup, SentCallback<Message> 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 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 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 audioprotected 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 © 2016. All rights reserved.