public class DefaultMessageSender extends Object implements MessageSender
MessageSender. This serves as a proxy to the DefaultAbsSender methods.
Most of the methods below will be directly calling the bot's similar functions. However, there are some methods introduced to ease sending messages such as:
sendMd(String, long) - with markdownsend(String, long) - without markdown| Constructor and Description |
|---|
DefaultMessageSender(DefaultAbsSender bot) |
public DefaultMessageSender(DefaultAbsSender bot)
public Optional<org.telegram.telegrambots.api.objects.Message> send(String message, long id)
send in interface MessageSenderpublic Optional<org.telegram.telegrambots.api.objects.Message> sendMd(String message, long id)
sendMd in interface MessageSenderpublic Optional<org.telegram.telegrambots.api.objects.Message> forceReply(String message, long id)
forceReply in interface MessageSenderpublic Boolean answerInlineQuery(org.telegram.telegrambots.api.methods.AnswerInlineQuery answerInlineQuery) throws org.telegram.telegrambots.exceptions.TelegramApiException
answerInlineQuery in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic Boolean sendChatAction(org.telegram.telegrambots.api.methods.send.SendChatAction sendChatAction) throws org.telegram.telegrambots.exceptions.TelegramApiException
sendChatAction in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic org.telegram.telegrambots.api.objects.Message forwardMessage(org.telegram.telegrambots.api.methods.ForwardMessage forwardMessage) throws org.telegram.telegrambots.exceptions.TelegramApiException
forwardMessage in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic org.telegram.telegrambots.api.objects.Message sendLocation(org.telegram.telegrambots.api.methods.send.SendLocation sendLocation) throws org.telegram.telegrambots.exceptions.TelegramApiException
sendLocation in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic org.telegram.telegrambots.api.objects.Message sendVenue(org.telegram.telegrambots.api.methods.send.SendVenue sendVenue) throws org.telegram.telegrambots.exceptions.TelegramApiException
sendVenue in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic org.telegram.telegrambots.api.objects.Message sendContact(org.telegram.telegrambots.api.methods.send.SendContact sendContact) throws org.telegram.telegrambots.exceptions.TelegramApiException
sendContact in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic Boolean kickMember(org.telegram.telegrambots.api.methods.groupadministration.KickChatMember kickChatMember) throws org.telegram.telegrambots.exceptions.TelegramApiException
kickMember in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic Boolean unbanMember(org.telegram.telegrambots.api.methods.groupadministration.UnbanChatMember unbanChatMember) throws org.telegram.telegrambots.exceptions.TelegramApiException
unbanMember in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic Boolean leaveChat(org.telegram.telegrambots.api.methods.groupadministration.LeaveChat leaveChat) throws org.telegram.telegrambots.exceptions.TelegramApiException
leaveChat in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic org.telegram.telegrambots.api.objects.Chat getChat(org.telegram.telegrambots.api.methods.groupadministration.GetChat getChat) throws org.telegram.telegrambots.exceptions.TelegramApiException
getChat in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic List<org.telegram.telegrambots.api.objects.ChatMember> getChatAdministrators(org.telegram.telegrambots.api.methods.groupadministration.GetChatAdministrators getChatAdministrators) throws org.telegram.telegrambots.exceptions.TelegramApiException
getChatAdministrators in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic org.telegram.telegrambots.api.objects.ChatMember getChatMember(org.telegram.telegrambots.api.methods.groupadministration.GetChatMember getChatMember) throws org.telegram.telegrambots.exceptions.TelegramApiException
getChatMember in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic Integer getChatMemberCount(org.telegram.telegrambots.api.methods.groupadministration.GetChatMemberCount getChatMemberCount) throws org.telegram.telegrambots.exceptions.TelegramApiException
getChatMemberCount in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic Boolean setChatPhoto(org.telegram.telegrambots.api.methods.groupadministration.SetChatPhoto setChatPhoto) throws org.telegram.telegrambots.exceptions.TelegramApiException
setChatPhoto in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic Boolean deleteChatPhoto(org.telegram.telegrambots.api.methods.groupadministration.DeleteChatPhoto deleteChatPhoto) throws org.telegram.telegrambots.exceptions.TelegramApiException
deleteChatPhoto in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic void deleteChatPhoto(org.telegram.telegrambots.api.methods.groupadministration.DeleteChatPhoto deleteChatPhoto, org.telegram.telegrambots.updateshandlers.SentCallback<Boolean> sentCallback) throws org.telegram.telegrambots.exceptions.TelegramApiException
deleteChatPhoto in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic Boolean pinChatMessage(org.telegram.telegrambots.api.methods.pinnedmessages.PinChatMessage pinChatMessage) throws org.telegram.telegrambots.exceptions.TelegramApiException
pinChatMessage in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic void pinChatMessage(org.telegram.telegrambots.api.methods.pinnedmessages.PinChatMessage pinChatMessage, org.telegram.telegrambots.updateshandlers.SentCallback<Boolean> sentCallback) throws org.telegram.telegrambots.exceptions.TelegramApiException
pinChatMessage in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic Boolean unpinChatMessage(org.telegram.telegrambots.api.methods.pinnedmessages.UnpinChatMessage unpinChatMessage) throws org.telegram.telegrambots.exceptions.TelegramApiException
unpinChatMessage in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic void unpinChatMessage(org.telegram.telegrambots.api.methods.pinnedmessages.UnpinChatMessage unpinChatMessage, org.telegram.telegrambots.updateshandlers.SentCallback<Boolean> sentCallback) throws org.telegram.telegrambots.exceptions.TelegramApiException
unpinChatMessage in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic Boolean promoteChatMember(org.telegram.telegrambots.api.methods.groupadministration.PromoteChatMember promoteChatMember) throws org.telegram.telegrambots.exceptions.TelegramApiException
promoteChatMember in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic void promoteChatMember(org.telegram.telegrambots.api.methods.groupadministration.PromoteChatMember promoteChatMember, org.telegram.telegrambots.updateshandlers.SentCallback<Boolean> sentCallback) throws org.telegram.telegrambots.exceptions.TelegramApiException
promoteChatMember in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic Boolean restrictChatMember(org.telegram.telegrambots.api.methods.groupadministration.RestrictChatMember restrictChatMember) throws org.telegram.telegrambots.exceptions.TelegramApiException
restrictChatMember in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic void restrictChatMember(org.telegram.telegrambots.api.methods.groupadministration.RestrictChatMember restrictChatMember, org.telegram.telegrambots.updateshandlers.SentCallback<Boolean> sentCallback) throws org.telegram.telegrambots.exceptions.TelegramApiException
restrictChatMember in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic Boolean setChatDescription(org.telegram.telegrambots.api.methods.groupadministration.SetChatDescription setChatDescription) throws org.telegram.telegrambots.exceptions.TelegramApiException
setChatDescription in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic void setChatDescription(org.telegram.telegrambots.api.methods.groupadministration.SetChatDescription setChatDescription, org.telegram.telegrambots.updateshandlers.SentCallback<Boolean> sentCallback) throws org.telegram.telegrambots.exceptions.TelegramApiException
setChatDescription in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic Boolean setChatTite(org.telegram.telegrambots.api.methods.groupadministration.SetChatTitle setChatTitle) throws org.telegram.telegrambots.exceptions.TelegramApiException
setChatTite in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic void setChatTite(org.telegram.telegrambots.api.methods.groupadministration.SetChatTitle setChatTitle, org.telegram.telegrambots.updateshandlers.SentCallback<Boolean> sentCallback) throws org.telegram.telegrambots.exceptions.TelegramApiException
setChatTite in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic String exportChatInviteLink(org.telegram.telegrambots.api.methods.groupadministration.ExportChatInviteLink exportChatInviteLink) throws org.telegram.telegrambots.exceptions.TelegramApiException
exportChatInviteLink in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic void exportChatInviteLinkAsync(org.telegram.telegrambots.api.methods.groupadministration.ExportChatInviteLink exportChatInviteLink, org.telegram.telegrambots.updateshandlers.SentCallback<String> sentCallback) throws org.telegram.telegrambots.exceptions.TelegramApiException
exportChatInviteLinkAsync in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic Boolean deleteMessage(org.telegram.telegrambots.api.methods.updatingmessages.DeleteMessage deleteMessage) throws org.telegram.telegrambots.exceptions.TelegramApiException
deleteMessage in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic void deleteMessageAsync(org.telegram.telegrambots.api.methods.updatingmessages.DeleteMessage deleteMessage, org.telegram.telegrambots.updateshandlers.SentCallback<Boolean> sentCallback) throws org.telegram.telegrambots.exceptions.TelegramApiException
deleteMessageAsync in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic Serializable editMessageText(org.telegram.telegrambots.api.methods.updatingmessages.EditMessageText editMessageText) throws org.telegram.telegrambots.exceptions.TelegramApiException
editMessageText in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic Serializable editMessageCaption(org.telegram.telegrambots.api.methods.updatingmessages.EditMessageCaption editMessageCaption) throws org.telegram.telegrambots.exceptions.TelegramApiException
editMessageCaption in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic Serializable editMessageReplyMarkup(org.telegram.telegrambots.api.methods.updatingmessages.EditMessageReplyMarkup editMessageReplyMarkup) throws org.telegram.telegrambots.exceptions.TelegramApiException
editMessageReplyMarkup in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic Boolean answerCallbackQuery(org.telegram.telegrambots.api.methods.AnswerCallbackQuery answerCallbackQuery) throws org.telegram.telegrambots.exceptions.TelegramApiException
answerCallbackQuery in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic org.telegram.telegrambots.api.objects.UserProfilePhotos getUserProfilePhotos(org.telegram.telegrambots.api.methods.GetUserProfilePhotos getUserProfilePhotos) throws org.telegram.telegrambots.exceptions.TelegramApiException
getUserProfilePhotos in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic File downloadFile(String path) throws org.telegram.telegrambots.exceptions.TelegramApiException
downloadFile in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic void downloadFileAsync(String path, org.telegram.telegrambots.updateshandlers.DownloadFileCallback<String> callback) throws org.telegram.telegrambots.exceptions.TelegramApiException
downloadFileAsync in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic File downloadFile(org.telegram.telegrambots.api.objects.File file) throws org.telegram.telegrambots.exceptions.TelegramApiException
downloadFile in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic void downloadFileAsync(org.telegram.telegrambots.api.objects.File file, org.telegram.telegrambots.updateshandlers.DownloadFileCallback<org.telegram.telegrambots.api.objects.File> callback) throws org.telegram.telegrambots.exceptions.TelegramApiException
downloadFileAsync in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic org.telegram.telegrambots.api.objects.File getFile(org.telegram.telegrambots.api.methods.GetFile getFile) throws org.telegram.telegrambots.exceptions.TelegramApiException
getFile in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic org.telegram.telegrambots.api.objects.User getMe() throws org.telegram.telegrambots.exceptions.TelegramApiException
getMe in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic org.telegram.telegrambots.api.objects.WebhookInfo getWebhookInfo() throws org.telegram.telegrambots.exceptions.TelegramApiException
getWebhookInfo in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic Serializable setGameScore(org.telegram.telegrambots.api.methods.games.SetGameScore setGameScore) throws org.telegram.telegrambots.exceptions.TelegramApiException
setGameScore in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic Serializable getGameHighScores(org.telegram.telegrambots.api.methods.games.GetGameHighScores getGameHighScores) throws org.telegram.telegrambots.exceptions.TelegramApiException
getGameHighScores in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic org.telegram.telegrambots.api.objects.Message sendGame(org.telegram.telegrambots.api.methods.send.SendGame sendGame) throws org.telegram.telegrambots.exceptions.TelegramApiException
sendGame in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic Boolean deleteWebhook(org.telegram.telegrambots.api.methods.updates.DeleteWebhook deleteWebhook) throws org.telegram.telegrambots.exceptions.TelegramApiException
deleteWebhook in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic org.telegram.telegrambots.api.objects.Message sendMessage(org.telegram.telegrambots.api.methods.send.SendMessage sendMessage) throws org.telegram.telegrambots.exceptions.TelegramApiException
sendMessage in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic void sendMessageAsync(org.telegram.telegrambots.api.methods.send.SendMessage sendMessage, org.telegram.telegrambots.updateshandlers.SentCallback<org.telegram.telegrambots.api.objects.Message> sentCallback) throws org.telegram.telegrambots.exceptions.TelegramApiException
sendMessageAsync in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic void answerInlineQueryAsync(org.telegram.telegrambots.api.methods.AnswerInlineQuery answerInlineQuery, org.telegram.telegrambots.updateshandlers.SentCallback<Boolean> sentCallback) throws org.telegram.telegrambots.exceptions.TelegramApiException
answerInlineQueryAsync in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic void sendChatActionAsync(org.telegram.telegrambots.api.methods.send.SendChatAction sendChatAction, org.telegram.telegrambots.updateshandlers.SentCallback<Boolean> sentCallback) throws org.telegram.telegrambots.exceptions.TelegramApiException
sendChatActionAsync in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic void forwardMessageAsync(org.telegram.telegrambots.api.methods.ForwardMessage forwardMessage, org.telegram.telegrambots.updateshandlers.SentCallback<org.telegram.telegrambots.api.objects.Message> sentCallback) throws org.telegram.telegrambots.exceptions.TelegramApiException
forwardMessageAsync in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic void sendLocationAsync(org.telegram.telegrambots.api.methods.send.SendLocation sendLocation, org.telegram.telegrambots.updateshandlers.SentCallback<org.telegram.telegrambots.api.objects.Message> sentCallback) throws org.telegram.telegrambots.exceptions.TelegramApiException
sendLocationAsync in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic void sendVenueAsync(org.telegram.telegrambots.api.methods.send.SendVenue sendVenue, org.telegram.telegrambots.updateshandlers.SentCallback<org.telegram.telegrambots.api.objects.Message> sentCallback) throws org.telegram.telegrambots.exceptions.TelegramApiException
sendVenueAsync in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic void sendContactAsync(org.telegram.telegrambots.api.methods.send.SendContact sendContact, org.telegram.telegrambots.updateshandlers.SentCallback<org.telegram.telegrambots.api.objects.Message> sentCallback) throws org.telegram.telegrambots.exceptions.TelegramApiException
sendContactAsync in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic void kickMemberAsync(org.telegram.telegrambots.api.methods.groupadministration.KickChatMember kickChatMember, org.telegram.telegrambots.updateshandlers.SentCallback<Boolean> sentCallback) throws org.telegram.telegrambots.exceptions.TelegramApiException
kickMemberAsync in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic void unbanMemberAsync(org.telegram.telegrambots.api.methods.groupadministration.UnbanChatMember unbanChatMember, org.telegram.telegrambots.updateshandlers.SentCallback<Boolean> sentCallback) throws org.telegram.telegrambots.exceptions.TelegramApiException
unbanMemberAsync in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic void leaveChatAsync(org.telegram.telegrambots.api.methods.groupadministration.LeaveChat leaveChat, org.telegram.telegrambots.updateshandlers.SentCallback<Boolean> sentCallback) throws org.telegram.telegrambots.exceptions.TelegramApiException
leaveChatAsync in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic void getChatAsync(org.telegram.telegrambots.api.methods.groupadministration.GetChat getChat, org.telegram.telegrambots.updateshandlers.SentCallback<org.telegram.telegrambots.api.objects.Chat> sentCallback) throws org.telegram.telegrambots.exceptions.TelegramApiException
getChatAsync in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic void getChatAdministratorsAsync(org.telegram.telegrambots.api.methods.groupadministration.GetChatAdministrators getChatAdministrators, org.telegram.telegrambots.updateshandlers.SentCallback<ArrayList<org.telegram.telegrambots.api.objects.ChatMember>> sentCallback) throws org.telegram.telegrambots.exceptions.TelegramApiException
getChatAdministratorsAsync in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic void getChatMemberAsync(org.telegram.telegrambots.api.methods.groupadministration.GetChatMember getChatMember, org.telegram.telegrambots.updateshandlers.SentCallback<org.telegram.telegrambots.api.objects.ChatMember> sentCallback) throws org.telegram.telegrambots.exceptions.TelegramApiException
getChatMemberAsync in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic void getChatMemberCountAsync(org.telegram.telegrambots.api.methods.groupadministration.GetChatMemberCount getChatMemberCount, org.telegram.telegrambots.updateshandlers.SentCallback<Integer> sentCallback) throws org.telegram.telegrambots.exceptions.TelegramApiException
getChatMemberCountAsync in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic void editMessageTextAsync(org.telegram.telegrambots.api.methods.updatingmessages.EditMessageText editMessageText, org.telegram.telegrambots.updateshandlers.SentCallback<Serializable> sentCallback) throws org.telegram.telegrambots.exceptions.TelegramApiException
editMessageTextAsync in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic void editMessageCaptionAsync(org.telegram.telegrambots.api.methods.updatingmessages.EditMessageCaption editMessageCaption, org.telegram.telegrambots.updateshandlers.SentCallback<Serializable> sentCallback) throws org.telegram.telegrambots.exceptions.TelegramApiException
editMessageCaptionAsync in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic void editMessageReplyMarkup(org.telegram.telegrambots.api.methods.updatingmessages.EditMessageReplyMarkup editMessageReplyMarkup, org.telegram.telegrambots.updateshandlers.SentCallback<Serializable> sentCallback) throws org.telegram.telegrambots.exceptions.TelegramApiException
editMessageReplyMarkup in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic void answerCallbackQueryAsync(org.telegram.telegrambots.api.methods.AnswerCallbackQuery answerCallbackQuery, org.telegram.telegrambots.updateshandlers.SentCallback<Boolean> sentCallback) throws org.telegram.telegrambots.exceptions.TelegramApiException
answerCallbackQueryAsync in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic void getUserProfilePhotosAsync(org.telegram.telegrambots.api.methods.GetUserProfilePhotos getUserProfilePhotos, org.telegram.telegrambots.updateshandlers.SentCallback<org.telegram.telegrambots.api.objects.UserProfilePhotos> sentCallback) throws org.telegram.telegrambots.exceptions.TelegramApiException
getUserProfilePhotosAsync in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic void getFileAsync(org.telegram.telegrambots.api.methods.GetFile getFile, org.telegram.telegrambots.updateshandlers.SentCallback<org.telegram.telegrambots.api.objects.File> sentCallback) throws org.telegram.telegrambots.exceptions.TelegramApiException
getFileAsync in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic void getMeAsync(org.telegram.telegrambots.updateshandlers.SentCallback<org.telegram.telegrambots.api.objects.User> sentCallback) throws org.telegram.telegrambots.exceptions.TelegramApiException
getMeAsync in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic void getWebhookInfoAsync(org.telegram.telegrambots.updateshandlers.SentCallback<org.telegram.telegrambots.api.objects.WebhookInfo> sentCallback) throws org.telegram.telegrambots.exceptions.TelegramApiException
getWebhookInfoAsync in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic void setGameScoreAsync(org.telegram.telegrambots.api.methods.games.SetGameScore setGameScore, org.telegram.telegrambots.updateshandlers.SentCallback<Serializable> sentCallback) throws org.telegram.telegrambots.exceptions.TelegramApiException
setGameScoreAsync in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic void getGameHighScoresAsync(org.telegram.telegrambots.api.methods.games.GetGameHighScores getGameHighScores, org.telegram.telegrambots.updateshandlers.SentCallback<ArrayList<org.telegram.telegrambots.api.objects.games.GameHighScore>> sentCallback) throws org.telegram.telegrambots.exceptions.TelegramApiException
getGameHighScoresAsync in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic void sendGameAsync(org.telegram.telegrambots.api.methods.send.SendGame sendGame, org.telegram.telegrambots.updateshandlers.SentCallback<org.telegram.telegrambots.api.objects.Message> sentCallback) throws org.telegram.telegrambots.exceptions.TelegramApiException
sendGameAsync in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic void deleteWebhook(org.telegram.telegrambots.api.methods.updates.DeleteWebhook deleteWebhook, org.telegram.telegrambots.updateshandlers.SentCallback<Boolean> sentCallback) throws org.telegram.telegrambots.exceptions.TelegramApiException
deleteWebhook in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic org.telegram.telegrambots.api.objects.Message sendDocument(org.telegram.telegrambots.api.methods.send.SendDocument sendDocument) throws org.telegram.telegrambots.exceptions.TelegramApiException
sendDocument in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic org.telegram.telegrambots.api.objects.Message sendPhoto(org.telegram.telegrambots.api.methods.send.SendPhoto sendPhoto) throws org.telegram.telegrambots.exceptions.TelegramApiException
sendPhoto in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic org.telegram.telegrambots.api.objects.Message sendVideo(org.telegram.telegrambots.api.methods.send.SendVideo sendVideo) throws org.telegram.telegrambots.exceptions.TelegramApiException
sendVideo in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic org.telegram.telegrambots.api.objects.Message sendSticker(org.telegram.telegrambots.api.methods.send.SendSticker sendSticker) throws org.telegram.telegrambots.exceptions.TelegramApiException
sendSticker in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic org.telegram.telegrambots.api.objects.Message sendAudio(org.telegram.telegrambots.api.methods.send.SendAudio sendAudio) throws org.telegram.telegrambots.exceptions.TelegramApiException
sendAudio in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionpublic org.telegram.telegrambots.api.objects.Message sendVoice(org.telegram.telegrambots.api.methods.send.SendVoice sendVoice) throws org.telegram.telegrambots.exceptions.TelegramApiException
sendVoice in interface MessageSenderorg.telegram.telegrambots.exceptions.TelegramApiExceptionCopyright © 2017. All rights reserved.