Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Ensure Telegram API Error Exception details are not being masked #1453

Open
wants to merge 18 commits into
base: dev
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Make downloadFileWithId method private in final class (#1441)
  • Loading branch information
panic08 authored Nov 21, 2024
commit 50615c12326574552d099a5a76a8230d05f1e110
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ private Optional<Message> 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()));
}
}