mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-09 05:04:50 +00:00
One task per user
This commit is contained in:
parent
096bcb6931
commit
c7b0b25c08
1 changed files with 5 additions and 4 deletions
|
|
@ -41,6 +41,7 @@ async def genss(client, message):
|
||||||
if media is None:
|
if media is None:
|
||||||
return await message.reply("Reply to a Telegram Video or document as video to generate screenshoot!")
|
return await message.reply("Reply to a Telegram Video or document as video to generate screenshoot!")
|
||||||
process = await message.reply_text("`Processing, please wait..`")
|
process = await message.reply_text("`Processing, please wait..`")
|
||||||
|
async with Lock():
|
||||||
if not DL_TASK.get(message.from_user.id):
|
if not DL_TASK.get(message.from_user.id):
|
||||||
DL_TASK[message.from_user.id] = Lock()
|
DL_TASK[message.from_user.id] = Lock()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue