diff --git a/telegrambots-longpolling/src/main/java/org/telegram/telegrambots/longpolling/BotSession.java b/telegrambots-longpolling/src/main/java/org/telegram/telegrambots/longpolling/BotSession.java index 6edb5d975..e5af4c8e5 100644 --- a/telegrambots-longpolling/src/main/java/org/telegram/telegrambots/longpolling/BotSession.java +++ b/telegrambots-longpolling/src/main/java/org/telegram/telegrambots/longpolling/BotSession.java @@ -152,7 +152,7 @@ private List getUpdatesFromTelegram() throws TelegramApiRequestException throw new TelegramApiErrorResponseException(response.code(), response.message()); } } - } catch (Exception e) { + } catch (IOException e) { throw new TelegramApiErrorResponseException(e); }