Class OkHttpTelegramClient
Object
AbstractTelegramClient
OkHttpTelegramClient
- All Implemented Interfaces:
TelegramClient
-
Constructor Summary
ConstructorsConstructorDescriptionOkHttpTelegramClient(ObjectMapper objectMapper, OkHttpClient client, String botToken, TelegramUrl telegramUrl) OkHttpTelegramClient(String botToken) OkHttpTelegramClient(String botToken, TelegramUrl telegramUrl) OkHttpTelegramClient(OkHttpClient client, String botToken) OkHttpTelegramClient(OkHttpClient client, String botToken, TelegramUrl telegramUrl) -
Method Summary
Modifier and TypeMethodDescriptiondownloadFileAsync(File file) <T extends Serializable,Method extends BotApiMethod<T>>
CompletableFuture<T>executeAsync(Method method) executeAsync(SetChatPhoto setChatPhoto) executeAsync(SendAnimation sendAnimation) executeAsync(SendAudio sendAudio) executeAsync(SendDocument sendDocument) executeAsync(SendMediaGroup sendMediaGroup) executeAsync(SendPaidMedia sendPaidMedia) executeAsync(SendPhoto sendPhoto) executeAsync(SendSticker sendSticker) executeAsync(SendVideo sendVideo) executeAsync(SendVideoNote sendVideoNote) executeAsync(SendVoice sendVoice) executeAsync(AddStickerToSet addStickerToSet) executeAsync(CreateNewStickerSet createNewStickerSet) executeAsync(ReplaceStickerInSet replaceStickerInSet) executeAsync(SetStickerSetThumbnail setStickerSetThumbnail) executeAsync(UploadStickerFile uploadStickerFile) executeAsync(SetWebhook setWebhook) executeAsync(EditMessageMedia editMessageMedia) Methods inherited from class AbstractTelegramClient
downloadFile, downloadFileAsStream, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, executeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface TelegramClient
downloadFile, downloadFileAsStream, downloadFileAsStreamAsync, downloadFileAsync
-
Constructor Details
-
OkHttpTelegramClient
public OkHttpTelegramClient(ObjectMapper objectMapper, OkHttpClient client, String botToken, TelegramUrl telegramUrl) -
OkHttpTelegramClient
-
OkHttpTelegramClient
-
OkHttpTelegramClient
-
OkHttpTelegramClient
-
-
Method Details
-
executeAsync
public <T extends Serializable,Method extends BotApiMethod<T>> CompletableFuture<T> executeAsync(Method method) throws TelegramApiException - Throws:
TelegramApiException
-
executeAsync
-
executeAsync
-
executeAsync
-
executeAsync
-
executeAsync
-
executeAsync
-
executeAsync
-
executeAsync
-
executeAsync
-
executeAsync
-
executeAsync
-
executeAsync
-
executeAsync
-
executeAsync
-
executeAsync
-
executeAsync
-
executeAsync
-
executeAsync
-
downloadFileAsync
-
downloadFileAsStreamAsync
-