Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt0550 committed Jan 29, 2025
1 parent fed4ba1 commit afa70c6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,10 @@ async def everyoneMessage(update: Update, context: ContextTypes.DEFAULT_TYPE):
# Append to members list the username of the member
try:
member = await update.message.chat.get_member(int(i[0]))
members.append(
"@" + member.user.username)
if member.user.username != None:
members.append(
"@" + member.user.username)

except Exception as e:
logger.info("[USER] " + str(e) + " - " + str(i))
continue
Expand Down

0 comments on commit afa70c6

Please sign in to comment.