fix ninja failing on replies

This commit is contained in:
Tanuj 2018-06-01 02:13:09 +01:00
parent 34c8c2d682
commit b6f3c4d199
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): async def get_target_message(event):
if event.is_reply and (await event.reply_message).from_id == borg.uid: 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): async for message in borg.iter_messages(await event.input_chat, limit=20):
if message.out: if message.out:
return message return message