mirror of
				https://github.com/LonamiWebs/Telethon.git
				synced 2025-11-04 09:57:29 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			351 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			351 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from . import FloodError
 | 
						|
 | 
						|
 | 
						|
class FloodWaitError(FloodError):
 | 
						|
    def __init__(self, **kwargs):
 | 
						|
        self.seconds = kwargs['extra']
 | 
						|
        super(Exception, self).__init__(
 | 
						|
            self,
 | 
						|
            'A wait of {} seconds is required.'
 | 
						|
            .format(self.seconds)
 | 
						|
        )
 | 
						|
 | 
						|
 | 
						|
rpc_errors_420_all = {
 | 
						|
    'FLOOD_WAIT_(\d+)': FloodWaitError
 | 
						|
}
 |