pull/8/merge^2
rudi 2018-06-08 16:55:13 +04:30
parent 859291c29b
commit 74947c63ab
1 changed files with 2 additions and 1 deletions

View File

@ -48,7 +48,8 @@ async def on_pat(event):
target = m.group(1)
if target == '':
target == borg.me.username
await borg.send_message(await event.chat,f"[Pat!](https://headp.at/pats/{choice})[\u2063](tg://user?id={(await borg.get_entity(target)).id})")
target_entity = await borg.get_entity(target)
await borg.send_message(await event.chat,f"[Pat!](https://headp.at/pats/{choice})[\u2063](tg://user?id={target_entity.id})")
except Exception as e:
print(e)
print(traceback.format_exc())