Skip to content

Commit 22086cc

Browse files
therepanicrubenlagus
authored andcommitted
Make downloadFileWithId method private in final class (#1441)
1 parent 1a5b1b1 commit 22086cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

telegrambots-abilities/src/main/java/org/telegram/telegrambots/abilitybots/api/bot/DefaultAbilities.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ private Optional<Message> send(String message, Update upd) {
467467
return bot.silent.send(getLocalizedMessage(message, AbilityUtils.getUser(upd).getLanguageCode()), chatId);
468468
}
469469

470-
protected File downloadFileWithId(String fileId) throws TelegramApiException {
470+
private File downloadFileWithId(String fileId) throws TelegramApiException {
471471
return bot.telegramClient.downloadFile(bot.telegramClient.execute(GetFile.builder().fileId(fileId).build()));
472472
}
473473
}

0 commit comments

Comments
 (0)