Rewrite IMDB Module

This commit is contained in:
yasir 2023-01-09 13:03:07 +07:00
parent 972fcdcac7
commit cc1689ee57
2 changed files with 3 additions and 2 deletions

View file

@ -56,8 +56,8 @@ def capture_err(func):
try:
await app.send_message(LOG_CHANNEL, x)
await message.reply(x)
except FloodWait:
await asyncio.sleep(x.value)
except FloodWait as e:
await asyncio.sleep(e.value)
raise err
return capture

View file

@ -1,4 +1,5 @@
from logging import getLogger
from utils import demoji
from pykeyboard import InlineKeyboard
from pyrogram.types import (
InlineKeyboardMarkup,