txlyre 2 years ago
parent
commit
a72baed3ac
1 changed files with 5 additions and 0 deletions
  1. 5 0
      commands.py

+ 5 - 0
commands.py

@@ -217,6 +217,11 @@ async def bday_handler(bot, event, command):
 
       return
 
+    if date >= datetime.now():
+      await event.reply('День рождения не может быть в будущем...')
+
+      return
+
     if await add_or_update_birthday(get_peer_id(event.peer_id), event.sender, date):
       await event.reply('День рождения успешно добавлен!!!')
     else: