mirror of
				https://github.com/fabianonline/telegram_backup.git
				synced 2025-10-31 15:49:22 +00:00 
			
		
		
		
	Show (temporary) messages every time a FLOOD_WAIT is happening.
This commit is contained in:
		| @@ -133,10 +133,18 @@ object Utils { | |||||||
| 						"messages and media. But be advised that just restarting me is not going to change\n" + | 						"messages and media. But be advised that just restarting me is not going to change\n" + | ||||||
| 						"the fact that Telegram won't talk to me until then." + | 						"the fact that Telegram won't talk to me until then." + | ||||||
| 						"\n") | 						"\n") | ||||||
|  | 				} else { | ||||||
|  | 					print(" Waiting...") | ||||||
| 				} | 				} | ||||||
| 				hasSeenFloodWaitMessage = true |  | ||||||
| 				 | 				 | ||||||
| 				try { TimeUnit.SECONDS.sleep(delay + 1) } catch (e: InterruptedException) { } | 				try { TimeUnit.SECONDS.sleep(delay + 1) } catch (e: InterruptedException) { } | ||||||
|  | 				 | ||||||
|  | 				if (hasSeenFloodWaitMessage) { | ||||||
|  | 					//    "  W a i t i n g . . ." | ||||||
|  | 					print("\b\b\b\b\b\b\b\b\b\b\b") | ||||||
|  | 				} | ||||||
|  | 				 | ||||||
|  | 				hasSeenFloodWaitMessage = true | ||||||
| 			} catch (e: TimeoutException) { | 			} catch (e: TimeoutException) { | ||||||
| 				println( | 				println( | ||||||
| 					"\n" + | 					"\n" + | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user