txlyre 1 сар өмнө
parent
commit
e787f3d626
1 өөрчлөгдсөн 5 нэмэгдсэн , 0 устгасан
  1. 5 0
      commands.py

+ 5 - 0
commands.py

@@ -667,6 +667,11 @@ async def say_handler(bot, event, command):
           init_state = command.args_string
 
         try:
+            try:
+                await event.delete()
+            except:
+                pass
+
             await markov_say(bot, get_peer_id(event.peer_id), init_state=init_state)
         except:
             await event.reply("Ошибка :(")