Skip to content

Commit

Permalink
Update info.py
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgojoof6eyes authored Jan 7, 2025
1 parent 2efe8f3 commit bf45a46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Powers/plugins/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,13 +277,13 @@ async def info_func(c: Gojo, message: Message):


status = False
if m.chat.id != m.from_user.id:
if m.from_user and (m.chat.id != m.from_user.id):
try:
if status:= await m.chat.get_member(user):
status = str(status.status.value).capitalize()
except:
pass
if not status:
if not status or status == "Member":
approved_users = Approve(m.chat.id).list_approved()
if user in approved_users:
status = "Approved"
Expand Down

0 comments on commit bf45a46

Please sign in to comment.