From b322ab72028dcf2b76ca012528537b96e5065195 Mon Sep 17 00:00:00 2001 From: blank X Date: Tue, 1 Dec 2020 09:42:19 +0700 Subject: [PATCH] Import FloodWait --- sukuinote/plugins/log_forwards.py | 1 + sukuinote/plugins/log_reports.py | 1 + 2 files changed, 2 insertions(+) diff --git a/sukuinote/plugins/log_forwards.py b/sukuinote/plugins/log_forwards.py index 0255614..8936005 100644 --- a/sukuinote/plugins/log_forwards.py +++ b/sukuinote/plugins/log_forwards.py @@ -1,6 +1,7 @@ import html import asyncio from pyrogram import Client, filters +from pyrogram.errors.exceptions.flood_420 import FloodWait from .. import config, slave, log_errors, app_user_ids logged = set() diff --git a/sukuinote/plugins/log_reports.py b/sukuinote/plugins/log_reports.py index 28dccf7..2a9713e 100644 --- a/sukuinote/plugins/log_reports.py +++ b/sukuinote/plugins/log_reports.py @@ -1,6 +1,7 @@ import html import asyncio from pyrogram import Client, filters +from pyrogram.errors.exceptions.flood_420 import FloodWait from .. import config, slave, log_errors reported = set()