mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-03 19:14:51 +00:00
Update ytdl_plugins.py
This commit is contained in:
parent
7c3706cda7
commit
154423d75d
1 changed files with 2 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ from pyrogram.types import (
|
||||||
|
|
||||||
from misskaty import app
|
from misskaty import app
|
||||||
from misskaty.core import pyro_cooldown
|
from misskaty.core import pyro_cooldown
|
||||||
from misskaty.core.decorator import capture_err, ratelimiter
|
from misskaty.core.decorator import capture_err, ratelimiter, new_task
|
||||||
from misskaty.helper.http import http
|
from misskaty.helper.http import http
|
||||||
from misskaty.helper.localization import use_chat_lang
|
from misskaty.helper.localization import use_chat_lang
|
||||||
from misskaty.vars import COMMAND_HANDLER, LOG_CHANNEL, SUDO
|
from misskaty.vars import COMMAND_HANDLER, LOG_CHANNEL, SUDO
|
||||||
|
|
@ -190,6 +190,7 @@ async def ytdl_extractinfo_callback(_, cq: CallbackQuery, strings):
|
||||||
@app.on_callback_query(filters.regex(r"^yt_(gen|dl)"))
|
@app.on_callback_query(filters.regex(r"^yt_(gen|dl)"))
|
||||||
@ratelimiter
|
@ratelimiter
|
||||||
@use_chat_lang()
|
@use_chat_lang()
|
||||||
|
@new_task
|
||||||
async def ytdl_gendl_callback(self: Client, cq: CallbackQuery, strings):
|
async def ytdl_gendl_callback(self: Client, cq: CallbackQuery, strings):
|
||||||
if not (cq.message.reply_to_message and cq.message.reply_to_message.from_user):
|
if not (cq.message.reply_to_message and cq.message.reply_to_message.from_user):
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue