mirror of
https://github.com/Xtao-Labs/sticker-captcha-bot.git
synced 2024-11-22 07:07:51 +00:00
fix: bot approve request
This commit is contained in:
parent
060aa7b8fa
commit
7774852f7c
@ -60,6 +60,8 @@ async def invite(client: Client, chat_member_updated: ChatMemberUpdated):
|
|||||||
from_user = chat_member_updated.from_user
|
from_user = chat_member_updated.from_user
|
||||||
if from_user and from_user.id == user.id:
|
if from_user and from_user.id == user.id:
|
||||||
from_user = None
|
from_user = None
|
||||||
|
if from_user.is_self:
|
||||||
|
return
|
||||||
if (
|
if (
|
||||||
user
|
user
|
||||||
and from_user
|
and from_user
|
||||||
|
Loading…
Reference in New Issue
Block a user