diff --git a/library/src/main/java/com/pengrad/telegrambot/impl/UpdatesHandler.java b/library/src/main/java/com/pengrad/telegrambot/impl/UpdatesHandler.java index 88d80992..211f0e4e 100644 --- a/library/src/main/java/com/pengrad/telegrambot/impl/UpdatesHandler.java +++ b/library/src/main/java/com/pengrad/telegrambot/impl/UpdatesHandler.java @@ -80,7 +80,7 @@ private int lastUpdateId(List updates) { private void sleep() { if (sleepTimeout <= 0L) return; try { - Thread.sleep(100); + Thread.sleep(sleepTimeout); } catch (InterruptedException ignored) { } }