Fix bug with checking empty Bio.

This commit is contained in:
Rykov7
2024-01-28 10:24:17 +03:00
parent 8067bb7f83
commit cc72f12470
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -98,7 +98,7 @@ async def check_new_members(message: types.Message):
info['bio'] = more_data.bio
if more_data.photo:
info['photo'] = more_data.photo.big_file_id
if has_links(info['bio']):
if info['bio'] and has_links(info['bio']):
await bot.ban_chat_member(message.chat.id, info['id'])
logging.info(f"[BANNED] User {info['full_name']} has url in bio: {info['bio']}")
else: