Flood

exception pyrogram.api.errors.exceptions.flood_420.Flood(x: int = None, query_type: type = None)

Bases: pyrogram.api.errors.error.Error

CODE = 420

int – Error Code

exception pyrogram.api.errors.exceptions.flood_420.FloodWait(x: int = None, query_type: type = None)

Bases: pyrogram.api.errors.exceptions.flood_420.Flood

A wait of {x} seconds is required

ID = 'FLOOD_WAIT_X'

str – Error ID