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: try:
await app.send_message(LOG_CHANNEL, x) await app.send_message(LOG_CHANNEL, x)
await message.reply(x) await message.reply(x)
except FloodWait: except FloodWait as e:
await asyncio.sleep(x.value) await asyncio.sleep(e.value)
raise err raise err
return capture return capture

View file

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