Skip to content

Commit be197cf

Browse files
committed
feat: Ensure Telegram API Error Exception details are not being masked
1 parent aee0b6a commit be197cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • telegrambots-longpolling/src/main/java/org/telegram/telegrambots/longpolling

telegrambots-longpolling/src/main/java/org/telegram/telegrambots/longpolling/BotSession.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ private List<Update> getUpdatesFromTelegram() throws TelegramApiRequestException
152152
throw new TelegramApiErrorResponseException(response.code(), response.message());
153153
}
154154
}
155-
} catch (Exception e) {
155+
} catch (IOException e) {
156156
throw new TelegramApiErrorResponseException(e);
157157
}
158158

0 commit comments

Comments
 (0)