aboutsummaryrefslogtreecommitdiff
path: root/helpers.py
diff options
context:
space:
mode:
authorhuker667 <huker@tuta.io>2026-07-05 17:41:22 +0300
committerhuker667 <huker@tuta.io>2026-07-05 17:41:22 +0300
commit965a22e0c556b291f3e5564c1c7d9f51c1190909 (patch)
tree750484f6b47558920140f7e3c875bc0df1fe4d70 /helpers.py
parentd8a1c615d537ec988f168975c2f2c5214e1106ed (diff)
downloaduzbekgpt-965a22e0c556b291f3e5564c1c7d9f51c1190909.tar.gz
uzbekgpt-965a22e0c556b291f3e5564c1c7d9f51c1190909.tar.bz2
uzbekgpt-965a22e0c556b291f3e5564c1c7d9f51c1190909.zip
fix edit mode and block
Diffstat (limited to 'helpers.py')
-rw-r--r--helpers.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/helpers.py b/helpers.py
index eff4c81..8618187 100644
--- a/helpers.py
+++ b/helpers.py
@@ -24,6 +24,9 @@ def is_blocked(user_id):
alo = "🚫 *файл не вошёл.* я ещё не сгенерировал прошлое сообщение.\n" \
f"подожди {round(10 - time_diff, 3)} секунд, чтобы я закрыл глаза " \
"на это da."
+ elif len(last_command_time[user_id][2]) > 1 and time_diff > 5:
+ last_command_time = [current_time, False, []]
+ return "", False
elif len(last_command_time[user_id][2]) > 1:
alo = "🚫 *файл не вошёл.* хватит так быстро слать свои сообщения."
else: