mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-06 03:54:50 +00:00
Fix
This commit is contained in:
parent
7980bfdd3f
commit
956f71999d
2 changed files with 4 additions and 4 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
ADMINS=617426792
|
SUDO=617426792
|
||||||
API_HASH=
|
API_HASH=
|
||||||
API_ID=
|
API_ID=
|
||||||
BOT_TOKEN=
|
BOT_TOKEN=
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ from pyrogram.types import InlineKeyboardButton, InlineKeyboardMarkup, Message
|
||||||
from database.users_chats_db import db
|
from database.users_chats_db import db
|
||||||
from misskaty import app
|
from misskaty import app
|
||||||
from misskaty.helper.localization import use_chat_lang
|
from misskaty.helper.localization import use_chat_lang
|
||||||
from misskaty.vars import SUPPORT_CHAT
|
from misskaty.vars import SUPPORT_CHAT, SUDO
|
||||||
|
|
||||||
|
|
||||||
@app.on_message(filters.private & filters.incoming, group=2)
|
@app.on_message(filters.private & filters.incoming, group=2)
|
||||||
|
|
@ -41,7 +41,7 @@ async def grp_bd(self: Client, ctx: Message, strings):
|
||||||
await db.add_chat(ctx.chat.id, ctx.chat.title)
|
await db.add_chat(ctx.chat.id, ctx.chat.title)
|
||||||
|
|
||||||
|
|
||||||
@Client.on_message(filters.command('banuser') & filters.user(ADMINS))
|
@Client.on_message(filters.command('banuser') & filters.user(SUDO))
|
||||||
async def ban_a_user(bot, message):
|
async def ban_a_user(bot, message):
|
||||||
if len(message.command) == 1:
|
if len(message.command) == 1:
|
||||||
return await message.reply('Give me a user id / username')
|
return await message.reply('Give me a user id / username')
|
||||||
|
|
@ -73,7 +73,7 @@ async def ban_a_user(bot, message):
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Client.on_message(filters.command('unbanuser') & filters.user(ADMINS))
|
@Client.on_message(filters.command('unbanuser') & filters.user(SUDO))
|
||||||
async def unban_a_user(bot, message):
|
async def unban_a_user(bot, message):
|
||||||
if len(message.command) == 1:
|
if len(message.command) == 1:
|
||||||
return await message.reply('Give me a user id / username')
|
return await message.reply('Give me a user id / username')
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue