diff --git a/plugins/admintools.py b/plugins/admintools.py index f5a7a2e..fc76948 100644 --- a/plugins/admintools.py +++ b/plugins/admintools.py @@ -301,8 +301,8 @@ async def pin(msg): return await x.edit("`Hmm, I'm have no rights here...`") except Exception as e: return await x.edit(f"**ERROR:**`{str(e)}`") - await x.delete() - + await x.edit(f"`Pinned` [this message](https://t.me/c/{cht.id}/{xx})!") + @ultroid_cmd( pattern="dpin($| (.*))", )