yank to current chat instead of saved messages

This commit is contained in:
udf 2018-12-07 14:40:31 +02:00
parent 7a90830621
commit 165b100804
Signed by: kate
GPG Key ID: E40724BAD73AF77B
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ async def on_yank(event, targets, num_offset):
message = '\n\n'.join(get_message_html(target) for target in targets)
message, entities = thtml.parse(message)
await borg(SaveDraftRequest(
peer='me',
peer=await event.get_input_chat(),
message=message,
entities=entities,
no_webpage=True,