da alo fix location
This commit is contained in:
1 parent
be0179f5ec
commit
66038368a6
1 file changed
+2
-1
@@ -156,7 +156,7 @@ async def guest_middleware(handler, event, data):
|
|||||||
location = None
|
location = None
|
||||||
if message.location:
|
if message.location:
|
||||||
location = message.location
|
location = message.location
|
||||||
elif replied and replied.voice:
|
elif replied and replied.location:
|
||||||
location = replied.location
|
location = replied.location
|
||||||
|
|
||||||
if voice:
|
if voice:
|
||||||
@@ -167,6 +167,7 @@ async def guest_middleware(handler, event, data):
|
|||||||
await g_answer(message, da)
|
await g_answer(message, da)
|
||||||
else:
|
else:
|
||||||
await message.reply(da)
|
await message.reply(da)
|
||||||
|
return
|
||||||
buf = BytesIO()
|
buf = BytesIO()
|
||||||
try:
|
try:
|
||||||
brat = await bot.download(voice, destination=buf)
|
brat = await bot.download(voice, destination=buf)
|
||||||
|
|||||||
Reference in new issue
Block a user