This commit is contained in:
yasirarism 2023-07-04 10:53:25 +07:00 committed by GitHub
parent 500cb204ad
commit a8b8b315fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -41,7 +41,7 @@ async def bard_chatbot(self: Client, ctx: Message, strings):
await msg.edit_msg(str(e))
@app.on_message(filters.command("ask", COMMAND_HANDLER))
@app.on_cmd("ask")
@ratelimiter
@use_chat_lang()
async def openai_chatbot(self: Client, ctx: Message, strings):

View file

@ -35,7 +35,7 @@ def rand_key():
return str(uuid4())[:8]
@app.on_message(filters.command(["ytsearch"], COMMAND_HANDLER) & ~filters.channel)
@app.on_cmd("ytsearch", ~filters.channel)
@capture_err
@ratelimiter
@use_chat_lang()
@ -110,7 +110,7 @@ async def ytdownv2(self: Client, ctx: Message, strings):
await ctx.reply_msg(f"Opps, ERROR: {str(err)}")
@app.on_callback_query(filters.regex(r"^yt_listall"))
@app.on_cb(filters.regex(r"^yt_listall"))
@ratelimiter
@use_chat_lang()
async def ytdl_listall_callback(self: Client, cq: CallbackQuery, strings):