Package org.telegram.telegrambots.client
Class AbstractTelegramClient
Object
AbstractTelegramClient
- All Implemented Interfaces:
TelegramClient
- Direct Known Subclasses:
OkHttpTelegramClient
Abstract client implementation which delegates all synchronous methods to the async methods. Preferable for implementations
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondownloadFile(File file) downloadFileAsStream(File file) <T extends Serializable,Method extends BotApiMethod<T>>
Texecute(Method method) execute(SetChatPhoto setChatPhoto) execute(SendAnimation sendAnimation) execute(SendDocument sendDocument) execute(SendMediaGroup sendMediaGroup) execute(SendSticker sendSticker) execute(SendVideoNote sendVideoNote) execute(AddStickerToSet addStickerToSet) execute(CreateNewStickerSet createNewStickerSet) execute(ReplaceStickerInSet replaceStickerInSet) execute(SetStickerSetThumbnail setStickerSetThumbnail) execute(UploadStickerFile uploadStickerFile) execute(EditMessageMedia editMessageMedia) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface TelegramClient
downloadFile, downloadFileAsStream, downloadFileAsStreamAsync, downloadFileAsStreamAsync, downloadFileAsync, downloadFileAsync, executeAsync, executeAsync, executeAsync, executeAsync, executeAsync, executeAsync, executeAsync, executeAsync, executeAsync, executeAsync, executeAsync, executeAsync, executeAsync, executeAsync, executeAsync, executeAsync, executeAsync
-
Constructor Details
-
AbstractTelegramClient
public AbstractTelegramClient()
-
-
Method Details
-
execute
public <T extends Serializable,Method extends BotApiMethod<T>> T execute(Method method) throws TelegramApiException - Specified by:
executein interfaceTelegramClient- Throws:
TelegramApiException
-
execute
- Specified by:
executein interfaceTelegramClient- Throws:
TelegramApiException
-
execute
- Specified by:
executein interfaceTelegramClient- Throws:
TelegramApiException
-
execute
- Specified by:
executein interfaceTelegramClient- Throws:
TelegramApiException
-
execute
- Specified by:
executein interfaceTelegramClient- Throws:
TelegramApiException
-
execute
- Specified by:
executein interfaceTelegramClient- Throws:
TelegramApiException
-
execute
- Specified by:
executein interfaceTelegramClient- Throws:
TelegramApiException
-
execute
- Specified by:
executein interfaceTelegramClient- Throws:
TelegramApiException
-
execute
- Specified by:
executein interfaceTelegramClient- Throws:
TelegramApiException
-
execute
- Specified by:
executein interfaceTelegramClient- Throws:
TelegramApiException
-
execute
- Specified by:
executein interfaceTelegramClient- Throws:
TelegramApiException
-
execute
- Specified by:
executein interfaceTelegramClient- Throws:
TelegramApiException
-
execute
- Specified by:
executein interfaceTelegramClient- Throws:
TelegramApiException
-
execute
- Specified by:
executein interfaceTelegramClient- Throws:
TelegramApiException
-
execute
- Specified by:
executein interfaceTelegramClient- Throws:
TelegramApiException
-
execute
- Specified by:
executein interfaceTelegramClient- Throws:
TelegramApiException
-
execute
- Specified by:
executein interfaceTelegramClient- Throws:
TelegramApiException
-
downloadFile
- Specified by:
downloadFilein interfaceTelegramClient- Throws:
TelegramApiException
-
downloadFileAsStream
- Specified by:
downloadFileAsStreamin interfaceTelegramClient- Throws:
TelegramApiException
-