mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-01 18:44:50 +00:00
Update ban_user_or_chat.py
This commit is contained in:
parent
2b26bde7a9
commit
8d40cfd36c
1 changed files with 1 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ async def ban_reply(self: Client, ctx: Message):
|
|||
return
|
||||
ban = await db.get_ban_status(ctx.from_user.id)
|
||||
if (ban.get("is_banned") and ctx.chat.type.value == "private") or (
|
||||
ban.get("is_banned") and ctx.chat.type.value == "supergroup" and ctx.command
|
||||
ban.get("is_banned") and ctx.chat.type.value == "supergroup" and bool(ctx.command)
|
||||
):
|
||||
await ctx.reply_msg(
|
||||
f'I am sorry, You are banned to use Me. \nBan Reason: {ban["ban_reason"]}'
|
||||
|
|
|
|||
Loading…
Reference in a new issue