fix missing await

ninja_fix
udf 2018-06-02 21:18:59 +02:00 committed by GitHub
parent b434a1ec8f
commit 348e0f2d0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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