Interface MessageSender
-
- All Known Implementing Classes:
DefaultSender
public interface MessageSenderA sender interface that replicatesDefaultAbsSendermethods.- Author:
- Abbas Abou Daya
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BooleanaddStickerToSet(org.telegram.telegrambots.meta.api.methods.stickers.AddStickerToSet addStickerToSet)BooleancreateNewStickerSet(org.telegram.telegrambots.meta.api.methods.stickers.CreateNewStickerSet createNewStickerSet)FiledownloadFile(String path)FiledownloadFile(org.telegram.telegrambots.meta.api.objects.File file)voiddownloadFileAsync(String path, org.telegram.telegrambots.meta.updateshandlers.DownloadFileCallback<String> callback)voiddownloadFileAsync(org.telegram.telegrambots.meta.api.objects.File file, org.telegram.telegrambots.meta.updateshandlers.DownloadFileCallback<org.telegram.telegrambots.meta.api.objects.File> callback)<T extends Serializable,Method extends org.telegram.telegrambots.meta.api.methods.BotApiMethod<T>>
Texecute(Method method)<T extends Serializable,Method extends org.telegram.telegrambots.meta.api.methods.BotApiMethod<T>,Callback extends org.telegram.telegrambots.meta.updateshandlers.SentCallback<T>>
voidexecuteAsync(Method method, Callback callback)org.telegram.telegrambots.meta.api.objects.UsergetMe()voidgetMeAsync(org.telegram.telegrambots.meta.updateshandlers.SentCallback<org.telegram.telegrambots.meta.api.objects.User> sentCallback)org.telegram.telegrambots.meta.api.objects.WebhookInfogetWebhookInfo()voidgetWebhookInfoAsync(org.telegram.telegrambots.meta.updateshandlers.SentCallback<org.telegram.telegrambots.meta.api.objects.WebhookInfo> sentCallback)org.telegram.telegrambots.meta.api.objects.MessagesendAudio(org.telegram.telegrambots.meta.api.methods.send.SendAudio sendAudio)org.telegram.telegrambots.meta.api.objects.MessagesendDocument(org.telegram.telegrambots.meta.api.methods.send.SendDocument sendDocument)org.telegram.telegrambots.meta.api.objects.MessagesendPhoto(org.telegram.telegrambots.meta.api.methods.send.SendPhoto sendPhoto)org.telegram.telegrambots.meta.api.objects.MessagesendSticker(org.telegram.telegrambots.meta.api.methods.send.SendSticker sendSticker)org.telegram.telegrambots.meta.api.objects.MessagesendVideo(org.telegram.telegrambots.meta.api.methods.send.SendVideo sendVideo)org.telegram.telegrambots.meta.api.objects.MessagesendVideoNote(org.telegram.telegrambots.meta.api.methods.send.SendVideoNote sendVideoNote)org.telegram.telegrambots.meta.api.objects.MessagesendVoice(org.telegram.telegrambots.meta.api.methods.send.SendVoice sendVoice)BooleansetChatPhoto(org.telegram.telegrambots.meta.api.methods.groupadministration.SetChatPhoto setChatPhoto)org.telegram.telegrambots.meta.api.objects.FileuploadStickerFile(org.telegram.telegrambots.meta.api.methods.stickers.UploadStickerFile uploadStickerFile)
-
-
-
Method Detail
-
executeAsync
<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
- Throws:
org.telegram.telegrambots.meta.exceptions.TelegramApiException
-
execute
<T extends Serializable,Method extends org.telegram.telegrambots.meta.api.methods.BotApiMethod<T>> T execute(Method method) throws org.telegram.telegrambots.meta.exceptions.TelegramApiException
- Throws:
org.telegram.telegrambots.meta.exceptions.TelegramApiException
-
addStickerToSet
Boolean addStickerToSet(org.telegram.telegrambots.meta.api.methods.stickers.AddStickerToSet addStickerToSet) throws org.telegram.telegrambots.meta.exceptions.TelegramApiException
- Throws:
org.telegram.telegrambots.meta.exceptions.TelegramApiException
-
createNewStickerSet
Boolean createNewStickerSet(org.telegram.telegrambots.meta.api.methods.stickers.CreateNewStickerSet createNewStickerSet) throws org.telegram.telegrambots.meta.exceptions.TelegramApiException
- Throws:
org.telegram.telegrambots.meta.exceptions.TelegramApiException
-
uploadStickerFile
org.telegram.telegrambots.meta.api.objects.File uploadStickerFile(org.telegram.telegrambots.meta.api.methods.stickers.UploadStickerFile uploadStickerFile) throws org.telegram.telegrambots.meta.exceptions.TelegramApiException- Throws:
org.telegram.telegrambots.meta.exceptions.TelegramApiException
-
setChatPhoto
Boolean setChatPhoto(org.telegram.telegrambots.meta.api.methods.groupadministration.SetChatPhoto setChatPhoto) throws org.telegram.telegrambots.meta.exceptions.TelegramApiException
- Throws:
org.telegram.telegrambots.meta.exceptions.TelegramApiException
-
downloadFile
File downloadFile(String path) throws org.telegram.telegrambots.meta.exceptions.TelegramApiException
- Throws:
org.telegram.telegrambots.meta.exceptions.TelegramApiException
-
downloadFileAsync
void downloadFileAsync(String path, org.telegram.telegrambots.meta.updateshandlers.DownloadFileCallback<String> callback) throws org.telegram.telegrambots.meta.exceptions.TelegramApiException
- Throws:
org.telegram.telegrambots.meta.exceptions.TelegramApiException
-
downloadFile
File downloadFile(org.telegram.telegrambots.meta.api.objects.File file) throws org.telegram.telegrambots.meta.exceptions.TelegramApiException
- Throws:
org.telegram.telegrambots.meta.exceptions.TelegramApiException
-
downloadFileAsync
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- Throws:
org.telegram.telegrambots.meta.exceptions.TelegramApiException
-
getMe
org.telegram.telegrambots.meta.api.objects.User getMe() throws org.telegram.telegrambots.meta.exceptions.TelegramApiException- Throws:
org.telegram.telegrambots.meta.exceptions.TelegramApiException
-
getWebhookInfo
org.telegram.telegrambots.meta.api.objects.WebhookInfo getWebhookInfo() throws org.telegram.telegrambots.meta.exceptions.TelegramApiException- Throws:
org.telegram.telegrambots.meta.exceptions.TelegramApiException
-
getMeAsync
void getMeAsync(org.telegram.telegrambots.meta.updateshandlers.SentCallback<org.telegram.telegrambots.meta.api.objects.User> sentCallback) throws org.telegram.telegrambots.meta.exceptions.TelegramApiException- Throws:
org.telegram.telegrambots.meta.exceptions.TelegramApiException
-
getWebhookInfoAsync
void getWebhookInfoAsync(org.telegram.telegrambots.meta.updateshandlers.SentCallback<org.telegram.telegrambots.meta.api.objects.WebhookInfo> sentCallback) throws org.telegram.telegrambots.meta.exceptions.TelegramApiException- Throws:
org.telegram.telegrambots.meta.exceptions.TelegramApiException
-
sendDocument
org.telegram.telegrambots.meta.api.objects.Message sendDocument(org.telegram.telegrambots.meta.api.methods.send.SendDocument sendDocument) throws org.telegram.telegrambots.meta.exceptions.TelegramApiException- Throws:
org.telegram.telegrambots.meta.exceptions.TelegramApiException
-
sendPhoto
org.telegram.telegrambots.meta.api.objects.Message sendPhoto(org.telegram.telegrambots.meta.api.methods.send.SendPhoto sendPhoto) throws org.telegram.telegrambots.meta.exceptions.TelegramApiException- Throws:
org.telegram.telegrambots.meta.exceptions.TelegramApiException
-
sendVideo
org.telegram.telegrambots.meta.api.objects.Message sendVideo(org.telegram.telegrambots.meta.api.methods.send.SendVideo sendVideo) throws org.telegram.telegrambots.meta.exceptions.TelegramApiException- Throws:
org.telegram.telegrambots.meta.exceptions.TelegramApiException
-
sendAudio
org.telegram.telegrambots.meta.api.objects.Message sendAudio(org.telegram.telegrambots.meta.api.methods.send.SendAudio sendAudio) throws org.telegram.telegrambots.meta.exceptions.TelegramApiException- Throws:
org.telegram.telegrambots.meta.exceptions.TelegramApiException
-
sendVoice
org.telegram.telegrambots.meta.api.objects.Message sendVoice(org.telegram.telegrambots.meta.api.methods.send.SendVoice sendVoice) throws org.telegram.telegrambots.meta.exceptions.TelegramApiException- Throws:
org.telegram.telegrambots.meta.exceptions.TelegramApiException
-
sendVideoNote
org.telegram.telegrambots.meta.api.objects.Message sendVideoNote(org.telegram.telegrambots.meta.api.methods.send.SendVideoNote sendVideoNote) throws org.telegram.telegrambots.meta.exceptions.TelegramApiException- Throws:
org.telegram.telegrambots.meta.exceptions.TelegramApiException
-
sendSticker
org.telegram.telegrambots.meta.api.objects.Message sendSticker(org.telegram.telegrambots.meta.api.methods.send.SendSticker sendSticker) throws org.telegram.telegrambots.meta.exceptions.TelegramApiException- Throws:
org.telegram.telegrambots.meta.exceptions.TelegramApiException
-
-