|
@@ -19,11 +19,11 @@ async def welcome(_, message: Message):
|
|
|
"""Mute new member and send message with button"""
|
|
"""Mute new member and send message with button"""
|
|
|
for member in message.new_chat_members:
|
|
for member in message.new_chat_members:
|
|
|
try:
|
|
try:
|
|
|
- if member.is_bot:
|
|
|
|
|
- continue # ignore bots
|
|
|
|
|
if await is_gbanned_user(member.id):
|
|
if await is_gbanned_user(member.id):
|
|
|
await message.chat.kick_member(member.id)
|
|
await message.chat.kick_member(member.id)
|
|
|
continue
|
|
continue
|
|
|
|
|
+ if member.is_bot:
|
|
|
|
|
+ continue # ignore bots
|
|
|
text = (f"Welcome, {(member.mention())}\n**Are you human?**\n"
|
|
text = (f"Welcome, {(member.mention())}\n**Are you human?**\n"
|
|
|
"You will be removed from this chat if you are not verified "
|
|
"You will be removed from this chat if you are not verified "
|
|
|
f"in {WELCOME_DELAY_KICK_SEC} seconds")
|
|
f"in {WELCOME_DELAY_KICK_SEC} seconds")
|