txlyre 1 yıl önce
ebeveyn
işleme
9bf92ac6c6
1 değiştirilmiş dosya ile 5 ekleme ve 0 silme
  1. 5 0
      commands.py

+ 5 - 0
commands.py

@@ -427,6 +427,11 @@ async def run_handler(bot, event, command):
 
   language_name, text = re.match(r'^(\w+)(?:\s|\n)((?:\n|.)*)$', command.args_string).groups()
 
+  if not text.strip():
+    await event.reply('Пожалуйста, не оставляйте ввод пустым!')
+
+    return
+
   async with ClientSession() as session:
     try:
       async with session.post(