From 0ef0433ba7ef67d694d43b3d8791dea006fa1a60 Mon Sep 17 00:00:00 2001 From: Andrey Date: Tue, 8 Oct 2024 23:34:15 +0300 Subject: [PATCH] Make downloadFileWithId method private in final class --- .../telegrambots/abilitybots/api/bot/DefaultAbilities.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telegrambots-abilities/src/main/java/org/telegram/telegrambots/abilitybots/api/bot/DefaultAbilities.java b/telegrambots-abilities/src/main/java/org/telegram/telegrambots/abilitybots/api/bot/DefaultAbilities.java index bc2bfec47..7955491f2 100644 --- a/telegrambots-abilities/src/main/java/org/telegram/telegrambots/abilitybots/api/bot/DefaultAbilities.java +++ b/telegrambots-abilities/src/main/java/org/telegram/telegrambots/abilitybots/api/bot/DefaultAbilities.java @@ -468,7 +468,7 @@ private Optional send(String message, Update upd) { return bot.silent.send(getLocalizedMessage(message, AbilityUtils.getUser(upd).getLanguageCode()), chatId); } - protected File downloadFileWithId(String fileId) throws TelegramApiException { + private File downloadFileWithId(String fileId) throws TelegramApiException { return bot.telegramClient.downloadFile(bot.telegramClient.execute(GetFile.builder().fileId(fileId).build())); } }