From 461957ad619b426cc524e1b75d79a3deec44de21 Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Thu, 10 Feb 2022 10:10:38 +0700 Subject: [PATCH] change permission --- program/developer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/program/developer.py b/program/developer.py index 0d29f03..f707b5c 100644 --- a/program/developer.py +++ b/program/developer.py @@ -14,7 +14,7 @@ from config import BOT_USERNAME as bname from driver.core import bot from driver.filters import command from pyrogram import Client, filters -from driver.decorators import sudo_users_only, errors +from driver.decorators import bot_creator, sudo_users_only, errors from pyrogram.types import Message, InlineKeyboardButton, InlineKeyboardMarkup @@ -171,7 +171,7 @@ async def shellrunner(client, message): @Client.on_message(command(["leavebot", f"leavebot{bname}"]) & ~filters.edited) -@sudo_users_only +@bot_creator async def bot_leave_group(_, message): if len(message.command) != 2: await message.reply_text(