public class DefaultSender extends Object implements MessageSender
MessageSender. This serves as a proxy to the DefaultAbsSender methods.| Constructor and Description |
|---|
DefaultSender(DefaultAbsSender bot) |
public DefaultSender(DefaultAbsSender bot)
public <T extends Serializable,Method extends org.telegram.telegrambots.meta.api.methods.BotApiMethod<T>,Callback extends org.telegram.telegrambots.meta.updateshandlers.SentCallback<T>> void executeAsync(Method method, Callback callback) throws org.telegram.telegrambots.meta.exceptions.TelegramApiException
executeAsync in interface MessageSenderorg.telegram.telegrambots.meta.exceptions.TelegramApiExceptionpublic <T extends Serializable,Method extends org.telegram.telegrambots.meta.api.methods.BotApiMethod<T>> T execute(Method method) throws org.telegram.telegrambots.meta.exceptions.TelegramApiException
execute in interface MessageSenderorg.telegram.telegrambots.meta.exceptions.TelegramApiExceptionpublic Boolean addStickerToSet(org.telegram.telegrambots.meta.api.methods.stickers.AddStickerToSet addStickerToSet) throws org.telegram.telegrambots.meta.exceptions.TelegramApiException
addStickerToSet in interface MessageSenderorg.telegram.telegrambots.meta.exceptions.TelegramApiExceptionpublic Boolean createNewStickerSet(org.telegram.telegrambots.meta.api.methods.stickers.CreateNewStickerSet createNewStickerSet) throws org.telegram.telegrambots.meta.exceptions.TelegramApiException
createNewStickerSet in interface MessageSenderorg.telegram.telegrambots.meta.exceptions.TelegramApiExceptionpublic org.telegram.telegrambots.meta.api.objects.File uploadStickerFile(org.telegram.telegrambots.meta.api.methods.stickers.UploadStickerFile uploadStickerFile) throws org.telegram.telegrambots.meta.exceptions.TelegramApiException
uploadStickerFile in interface MessageSenderorg.telegram.telegrambots.meta.exceptions.TelegramApiExceptionpublic Boolean setChatPhoto(org.telegram.telegrambots.meta.api.methods.groupadministration.SetChatPhoto setChatPhoto) throws org.telegram.telegrambots.meta.exceptions.TelegramApiException
setChatPhoto in interface MessageSenderorg.telegram.telegrambots.meta.exceptions.TelegramApiExceptionpublic File downloadFile(String path) throws org.telegram.telegrambots.meta.exceptions.TelegramApiException
downloadFile in interface MessageSenderorg.telegram.telegrambots.meta.exceptions.TelegramApiExceptionpublic void downloadFileAsync(String path, org.telegram.telegrambots.meta.updateshandlers.DownloadFileCallback<String> callback) throws org.telegram.telegrambots.meta.exceptions.TelegramApiException
downloadFileAsync in interface MessageSenderorg.telegram.telegrambots.meta.exceptions.TelegramApiExceptionpublic File downloadFile(org.telegram.telegrambots.meta.api.objects.File file) throws org.telegram.telegrambots.meta.exceptions.TelegramApiException
downloadFile in interface MessageSenderorg.telegram.telegrambots.meta.exceptions.TelegramApiExceptionpublic void downloadFileAsync(org.telegram.telegrambots.meta.api.objects.File file, org.telegram.telegrambots.meta.updateshandlers.DownloadFileCallback<org.telegram.telegrambots.meta.api.objects.File> callback) throws org.telegram.telegrambots.meta.exceptions.TelegramApiException
downloadFileAsync in interface MessageSenderorg.telegram.telegrambots.meta.exceptions.TelegramApiExceptionpublic org.telegram.telegrambots.meta.api.objects.User getMe() throws org.telegram.telegrambots.meta.exceptions.TelegramApiException
getMe in interface MessageSenderorg.telegram.telegrambots.meta.exceptions.TelegramApiExceptionpublic org.telegram.telegrambots.meta.api.objects.WebhookInfo getWebhookInfo() throws org.telegram.telegrambots.meta.exceptions.TelegramApiException
getWebhookInfo in interface MessageSenderorg.telegram.telegrambots.meta.exceptions.TelegramApiExceptionpublic void getMeAsync(org.telegram.telegrambots.meta.updateshandlers.SentCallback<org.telegram.telegrambots.meta.api.objects.User> sentCallback) throws org.telegram.telegrambots.meta.exceptions.TelegramApiException
getMeAsync in interface MessageSenderorg.telegram.telegrambots.meta.exceptions.TelegramApiExceptionpublic void getWebhookInfoAsync(org.telegram.telegrambots.meta.updateshandlers.SentCallback<org.telegram.telegrambots.meta.api.objects.WebhookInfo> sentCallback) throws org.telegram.telegrambots.meta.exceptions.TelegramApiException
getWebhookInfoAsync in interface MessageSenderorg.telegram.telegrambots.meta.exceptions.TelegramApiExceptionpublic org.telegram.telegrambots.meta.api.objects.Message sendDocument(org.telegram.telegrambots.meta.api.methods.send.SendDocument sendDocument) throws org.telegram.telegrambots.meta.exceptions.TelegramApiException
sendDocument in interface MessageSenderorg.telegram.telegrambots.meta.exceptions.TelegramApiExceptionpublic org.telegram.telegrambots.meta.api.objects.Message sendPhoto(org.telegram.telegrambots.meta.api.methods.send.SendPhoto sendPhoto) throws org.telegram.telegrambots.meta.exceptions.TelegramApiException
sendPhoto in interface MessageSenderorg.telegram.telegrambots.meta.exceptions.TelegramApiExceptionpublic org.telegram.telegrambots.meta.api.objects.Message sendVideo(org.telegram.telegrambots.meta.api.methods.send.SendVideo sendVideo) throws org.telegram.telegrambots.meta.exceptions.TelegramApiException
sendVideo in interface MessageSenderorg.telegram.telegrambots.meta.exceptions.TelegramApiExceptionpublic org.telegram.telegrambots.meta.api.objects.Message sendSticker(org.telegram.telegrambots.meta.api.methods.send.SendSticker sendSticker) throws org.telegram.telegrambots.meta.exceptions.TelegramApiException
sendSticker in interface MessageSenderorg.telegram.telegrambots.meta.exceptions.TelegramApiExceptionpublic org.telegram.telegrambots.meta.api.objects.Message sendAudio(org.telegram.telegrambots.meta.api.methods.send.SendAudio sendAudio) throws org.telegram.telegrambots.meta.exceptions.TelegramApiException
sendAudio in interface MessageSenderorg.telegram.telegrambots.meta.exceptions.TelegramApiExceptionpublic org.telegram.telegrambots.meta.api.objects.Message sendVoice(org.telegram.telegrambots.meta.api.methods.send.SendVoice sendVoice) throws org.telegram.telegrambots.meta.exceptions.TelegramApiException
sendVoice in interface MessageSenderorg.telegram.telegrambots.meta.exceptions.TelegramApiExceptionpublic org.telegram.telegrambots.meta.api.objects.Message sendVideoNote(org.telegram.telegrambots.meta.api.methods.send.SendVideoNote sendVideoNote)
sendVideoNote in interface MessageSenderCopyright © 2019. All rights reserved.