public String getFileUrl(String botToken) { return getFileUrl(botToken, filePath); }
public final java.io.File downloadFile(String filePath) throws TelegramApiException { if(filePath == null || filePath.isEmpty()){ throw new TelegramApiException("Parameter file can not be null"); } String url = File.getFileUrl(getBotToken(), filePath); String tempFileName = Long.toString(System.currentTimeMillis()); return downloadToTemporaryFileWrappingExceptions(url, tempFileName); }
public final void downloadFileAsync(String filePath, DownloadFileCallback<String> callback) throws TelegramApiException { if(filePath == null || filePath.isEmpty()){ throw new TelegramApiException("Parameter filePath can not be null"); } assertParamNotNull(callback, "callback"); String url = File.getFileUrl(getBotToken(), filePath); String tempFileName = Long.toString(System.currentTimeMillis()); exe.submit(getDownloadFileAsyncJob(filePath, callback, url, tempFileName)); }
public final void downloadFileAsync(File file, DownloadFileCallback<File> callback) throws TelegramApiException { assertParamNotNull(file, "file"); assertParamNotNull(callback, "callback"); String url = file.getFileUrl(getBotToken()); String tempFileName = file.getFileId(); exe.submit(getDownloadFileAsyncJob(file, callback, url, tempFileName)); }
public final java.io.File downloadFile(File file) throws TelegramApiException { assertParamNotNull(file, "file"); String url = file.getFileUrl(getBotToken()); String tempFileName = file.getFileId(); return downloadToTemporaryFileWrappingExceptions(url, tempFileName); }
public String getFileUrl(String botToken) { return getFileUrl(botToken, filePath); }
public final java.io.File downloadFile(String filePath) throws TelegramApiException { if(filePath == null || filePath.isEmpty()){ throw new TelegramApiException("Parameter file can not be null"); } String url = File.getFileUrl(getBotToken(), filePath); String tempFileName = Long.toString(System.currentTimeMillis()); return downloadToTemporaryFileWrappingExceptions(url, tempFileName); }
public final void downloadFileAsync(String filePath, DownloadFileCallback<String> callback) throws TelegramApiException { if(filePath == null || filePath.isEmpty()){ throw new TelegramApiException("Parameter filePath can not be null"); } assertParamNotNull(callback, "callback"); String url = File.getFileUrl(getBotToken(), filePath); String tempFileName = Long.toString(System.currentTimeMillis()); exe.submit(getDownloadFileAsyncJob(filePath, callback, url, tempFileName)); }
public final void downloadFileAsync(File file, DownloadFileCallback<File> callback) throws TelegramApiException { assertParamNotNull(file, "file"); assertParamNotNull(callback, "callback"); String url = file.getFileUrl(getBotToken()); String tempFileName = file.getFileId(); exe.submit(getDownloadFileAsyncJob(file, callback, url, tempFileName)); }
public final java.io.File downloadFile(File file) throws TelegramApiException { assertParamNotNull(file, "file"); String url = file.getFileUrl(getBotToken()); String tempFileName = file.getFileId(); return downloadToTemporaryFileWrappingExceptions(url, tempFileName); }