Update ban_user_or_chat.py

This commit is contained in:
yasirarism 2023-07-03 22:51:00 +07:00 committed by GitHub
parent 2b26bde7a9
commit 8d40cfd36c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"]}'