🔧 pmcaptcha skip service message (#171)

This commit is contained in:
Akkia 2024-01-07 22:07:52 +08:00 committed by GitHub
parent f9a2a9d427
commit 1c75876346
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2337,6 +2337,7 @@ class Rule:
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)
)