From 66038368a6dbefbb8a8559464ff92abafa0b708c Mon Sep 17 00:00:00 2001 From: huker667 Date: Thu, 16 Jul 2026 13:10:58 +0300 Subject: da alo fix location --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'main.py') 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) -- cgit v1.3.1