Skip to content

Commit

Permalink
Merge pull request #15 from Matt0550/master
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
Matt0550 authored Jan 29, 2025
2 parents f0f5c0e + afa70c6 commit a591648
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 a591648

Please sign in to comment.