forked from kate/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):
|
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