mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 09:26:37 +03:00
Updated _Footer.py (markdown)
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!")
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user