diff --git a/telegrambots-meta/pom.xml b/telegrambots-meta/pom.xml
index 8f5e3ddc..a5075191 100644
--- a/telegrambots-meta/pom.xml
+++ b/telegrambots-meta/pom.xml
@@ -5,7 +5,7 @@
4.0.0
org.telegram
telegrambots-meta
- 2.4.4.4
+ 2.4.4.5
jar
Telegram Bots Meta
@@ -216,16 +216,16 @@
enforce
-
-
-
-
-
enforce
+
+
+
+
+
diff --git a/telegrambots/src/main/java/org/telegram/telegrambots/updatesreceivers/DefaultBotSession.java b/telegrambots/src/main/java/org/telegram/telegrambots/updatesreceivers/DefaultBotSession.java
index 02d00f04..499d6ecc 100644
--- a/telegrambots/src/main/java/org/telegram/telegrambots/updatesreceivers/DefaultBotSession.java
+++ b/telegrambots/src/main/java/org/telegram/telegrambots/updatesreceivers/DefaultBotSession.java
@@ -36,6 +36,8 @@ import java.util.List;
import java.util.concurrent.ConcurrentLinkedDeque;
import java.util.concurrent.TimeUnit;
+import static org.telegram.telegrambots.Constants.SOCKET_TIMEOUT;
+
/**
* @author Ruben Bermudez
* @version 1.0
@@ -142,6 +144,13 @@ public class DefaultBotSession implements BotSession {
.build();
requestConfig = options.getRequestConfig();
+ if (requestConfig == null) {
+ requestConfig = RequestConfig.copy(RequestConfig.custom().build())
+ .setSocketTimeout(SOCKET_TIMEOUT)
+ .setConnectTimeout(SOCKET_TIMEOUT)
+ .setConnectionRequestTimeout(SOCKET_TIMEOUT).build();
+ }
+
super.start();
}