mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 09:44:50 +00:00
Fix broadcast FloodWait
Signed-off-by: Yasir Aris M <git@yasir.id>
This commit is contained in:
parent
dd51947091
commit
f59933a767
1 changed files with 1 additions and 1 deletions
2
utils.py
2
utils.py
|
|
@ -72,7 +72,7 @@ async def broadcast_messages(user_id, message):
|
||||||
await message.copy(chat_id=user_id)
|
await message.copy(chat_id=user_id)
|
||||||
return True, "Succes"
|
return True, "Succes"
|
||||||
except FloodWait as e:
|
except FloodWait as e:
|
||||||
await asyncio.sleep(e.x)
|
await asyncio.sleep(e.value)
|
||||||
return await broadcast_messages(user_id, message)
|
return await broadcast_messages(user_id, message)
|
||||||
except InputUserDeactivated:
|
except InputUserDeactivated:
|
||||||
await db.delete_user(int(user_id))
|
await db.delete_user(int(user_id))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue