forked from uniborg/uniborg
fix missing await
This commit is contained in:
parent
b434a1ec8f
commit
348e0f2d0a
|
@ -12,7 +12,7 @@ from uniborg import util
|
|||
|
||||
async def get_target_message(event):
|
||||
if event.is_reply and (await event.reply_message).from_id == borg.uid:
|
||||
return event.reply_message
|
||||
return await event.reply_message
|
||||
async for message in borg.iter_messages(await event.input_chat, limit=20):
|
||||
if message.out:
|
||||
return message
|
||||
|
|
Loading…
Reference in New Issue