@@ -351,7 +351,10 @@ async def bday_handler(bot, event, command):
except ValueError:
await bot.get_participants(await event.get_chat())
- entity = await bot.get_entity(user_id)
+ try:
+ entity = await bot.get_entity(user_id)
+ except ValueError:
+ continue
birthdays_list += get_user_name(entity)
birthdays_list += ' — '