aboutsummaryrefslogtreecommitdiff
path: root/main.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 /main.py
parentd8a1c615d537ec988f168975c2f2c5214e1106ed (diff)
downloaduzbekgpt-965a22e0c556b291f3e5564c1c7d9f51c1190909.tar.gz
uzbekgpt-965a22e0c556b291f3e5564c1c7d9f51c1190909.tar.bz2
uzbekgpt-965a22e0c556b291f3e5564c1c7d9f51c1190909.zip
fix edit mode and block
Diffstat (limited to 'main.py')
-rw-r--r--main.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/main.py b/main.py
index 7a8a221..c9594ce 100644
--- a/main.py
+++ b/main.py
@@ -282,7 +282,11 @@ async def guest_middleware(handler, event, data):
return
if stream == "edit":
- message_id = msg.message_id
+ if msg:
+ message_id = msg.message_id
+ else:
+ msg = await message.reply("💬")
+ message_id = msg.message_id
else:
message_id = None