forked from kate/uniborg
fix ninja failing on replies
This commit is contained in:
parent
34c8c2d682
commit
b6f3c4d199
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue