mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-01 02:24:52 +00:00
Rewrite IMDB Module
This commit is contained in:
parent
972fcdcac7
commit
cc1689ee57
2 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
from logging import getLogger
|
||||
from utils import demoji
|
||||
from pykeyboard import InlineKeyboard
|
||||
from pyrogram.types import (
|
||||
InlineKeyboardMarkup,
|
||||
|
|
|
|||
Loading…
Reference in a new issue