Commited backup

This commit is contained in:
2025-07-10 21:02:34 +03:00
parent 952c1001e3
commit da0b80823e
1310 changed files with 254133 additions and 41 deletions

View File

@@ -0,0 +1,17 @@
import os
from .. import loader, utils
def register(cb):
cb(URLShortenerMod())
class URLShortenerMod(loader.Module):
"""Сократитель ссылок"""
strings = {'name': 'URLShortener'}
async def lgtcmd(self, message):
"""Сократить ссылку с помощью сервиса verylegit.link"""
args = utils.get_args_raw(message)
if not args: return await message.edit("Нет аргументов.")
link = os.popen(f"curl verylegit.link/sketchify -d long_url={args}").read()
await message.edit(f"Ссылка:\n> {link}")