Updated _Footer.py (markdown)

zenkare 2024-03-07 00:43:22 +11:00
parent ad8a6b1a63
commit 4c3c41c144

@ -1,15 +1 @@
```python
if not (
member.new_chat_member
and member.new_chat_member.status not in {ChatMemberStatus.BANNED}
and not member.old_chat_member
):
return
user = member.new_chat_member.user if member.new_chat_member else member.from_user
@app.on_chat_member_updated()
async def handel_new_member_super(_, user: ChatMemberUpdated):
user_id = user.from_user.id
chat_id = user.chat.id
await app.send_message(chat_id, f"hi {user.from_user.mention} welcome to my group!")
```