From fa864f37b78cebf77097a5b00d8cb86ee3f9542b Mon Sep 17 00:00:00 2001 From: Fabian Schlenz Date: Fri, 16 Sep 2016 06:41:06 +0200 Subject: [PATCH] Increased the delay between getMessages from 0.1 to 0.4 seconds in a hope to prevent FLOOD_WAIT exceptions. --- src/main/java/de/fabianonline/telegram_backup/Config.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/fabianonline/telegram_backup/Config.java b/src/main/java/de/fabianonline/telegram_backup/Config.java index c621ccf..88ac66a 100644 --- a/src/main/java/de/fabianonline/telegram_backup/Config.java +++ b/src/main/java/de/fabianonline/telegram_backup/Config.java @@ -37,7 +37,7 @@ public class Config { public static final String FILE_FILES_BASE = "files"; public static final String FILE_STICKER_BASE = "stickers"; - public static int DELAY_AFTER_GET_MESSAGES = 100; + public static int DELAY_AFTER_GET_MESSAGES = 400; public static int DELAY_AFTER_GET_FILE = 100; public static int RENAMING_MAX_TRIES = 5;