Skip to content

Commit

Permalink
🔧 pmcaptcha skip service message (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
AkkiaS7 authored Jan 7, 2024
1 parent f9a2a9d commit 1c75876
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pmcaptcha/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2337,6 +2337,7 @@ def _precondition(self) -> bool:
or self.msg.from_user.is_contact
or self.msg.from_user.is_verified
or self.msg.chat.type == ChatType.BOT
or self.msg.service is not None # skip service message
or setting.is_verified(self.user.id)
)

Expand Down

0 comments on commit 1c75876

Please sign in to comment.