aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhuker667 <huker@tuta.io>2026-07-16 13:10:58 +0300
committerhuker667 <huker@tuta.io>2026-07-16 13:10:58 +0300
commit66038368a6dbefbb8a8559464ff92abafa0b708c (patch)
tree44a33fb1c4e2ee715a4e0abadbb8f62c00b1c08e
parentbe0179f5ec16531caf16cb28bd147ebc732dc457 (diff)
downloaduzbekgpt-66038368a6dbefbb8a8559464ff92abafa0b708c.tar.gz
uzbekgpt-66038368a6dbefbb8a8559464ff92abafa0b708c.tar.bz2
uzbekgpt-66038368a6dbefbb8a8559464ff92abafa0b708c.zip
da alo fix location
-rw-r--r--main.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.py b/main.py
index 9823579..ad2747f 100644
--- a/main.py
+++ b/main.py
@@ -156,7 +156,7 @@ async def guest_middleware(handler, event, data):
location = None
if message.location:
location = message.location
- elif replied and replied.voice:
+ elif replied and replied.location:
location = replied.location
if voice:
@@ -167,6 +167,7 @@ async def guest_middleware(handler, event, data):
await g_answer(message, da)
else:
await message.reply(da)
+ return
buf = BytesIO()
try:
brat = await bot.download(voice, destination=buf)