pull/8/merge^2
parent
859291c29b
commit
74947c63ab
|
@ -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())
|
||||
|
|
Reference in New Issue