diff --git a/bot/modules/mediainfo.py b/bot/modules/mediainfo.py index 89be19eba..546916abd 100644 --- a/bot/modules/mediainfo.py +++ b/bot/modules/mediainfo.py @@ -1,3 +1,4 @@ +import asyncio from os import getcwd from os import path as ospath from re import search as re_search @@ -68,16 +69,13 @@ async def gen_mediainfo(message, link=None, media=None, msg=None): link_id = (await telegraph.create_page(title="MediaInfo", content=tc))["path"] link = f"https://graph.org/{link_id}" await delete_message(temp_send) + await asyncio.sleep(2) await TgClient.bot.send_web_page( message.chat.id, link, "
MediaInfo generated successfully.
", invert_media=True, ) - await temp_send.edit( - f, - disable_web_page_preview=False, - ) async def mediainfo(_, message):