forked from uniborg/uniborg
fix chat not being defined
This commit is contained in:
parent
165b100804
commit
926ea5751c
|
@ -29,9 +29,10 @@ async def on_edit_end(event, target):
|
||||||
message = event.message.message[:-2]
|
message = event.message.message[:-2]
|
||||||
if message.strip() == '.':
|
if message.strip() == '.':
|
||||||
message = ''
|
message = ''
|
||||||
|
chat = await event.get_input_chat()
|
||||||
try:
|
try:
|
||||||
await borg(EditMessageRequest(
|
await borg(EditMessageRequest(
|
||||||
peer=await event.get_input_chat(),
|
peer=chat,
|
||||||
id=target.id,
|
id=target.id,
|
||||||
no_webpage=not target.media,
|
no_webpage=not target.media,
|
||||||
message=message,
|
message=message,
|
||||||
|
|
Loading…
Reference in New Issue