Skip to content

Commit

Permalink
Update Group.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Badhacker98 authored Oct 13, 2024
1 parent 986895a commit 393f9db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shizuchat/modules/Group.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ async def deletechatphoto(_, message):
chat_id = message.chat.id
user_id = message.from_user.id
msg = await message.reply_text("**ᴘʀᴏᴄᴇssɪɴɢ....**")
admin_check = await app.get_chat_member(chat_id, user_id)
admin_check = await shizuchat.get_chat_member(chat_id, user_id)
if message.chat.type == enums.ChatType.PRIVATE:
await msg.edit("**ᴛʜɪs ᴄᴏᴍᴍᴀɴᴅ ᴡᴏʀᴋ ᴏɴ ɢʀᴏᴜᴘs !**")
try:
if admin_check.privileges.can_change_info:
await app.delete_chat_photo(chat_id)
await shizuchat.delete_chat_photo(chat_id)
await msg.edit(
"**ɢʀᴏᴜᴘs ᴘʀᴏғɪʟᴇ ᴘʜᴏᴛᴏ ʀᴇᴍᴏᴠᴇᴅ !\nʙʏ** {}".format(
message.from_user.mention
Expand Down

0 comments on commit 393f9db

Please sign in to comment.