Skip to content

Commit

Permalink
sleep 2 sec
Browse files Browse the repository at this point in the history
  • Loading branch information
5hojib committed Jan 2, 2025
1 parent 09ade24 commit b45b3ca
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions bot/modules/mediainfo.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import asyncio
from os import getcwd
from os import path as ospath
from re import search as re_search
Expand Down Expand Up @@ -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,
"<blockquote>MediaInfo generated successfully.</blockquote>",
invert_media=True,
)
await temp_send.edit(
f,
disable_web_page_preview=False,
)


async def mediainfo(_, message):
Expand Down

0 comments on commit b45b3ca

Please sign in to comment.