From b45b3ca007a18fdc469392c5aea3e256871f4af2 Mon Sep 17 00:00:00 2001 From: 5hojib Date: Thu, 2 Jan 2025 11:55:02 +0600 Subject: [PATCH] sleep 2 sec --- bot/modules/mediainfo.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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):