Files
limoka/Ijidishurka/modules/ss.py
2025-07-10 21:02:34 +03:00

26 lines
753 B
Python
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import random
from .. import loader
from asyncio import sleep
from telethon.tl.types import Message
from .. import loader, utils
@loader.tds
class ss(loader.Module):
"""Подпишись на канал @modwini"""
strings = {"name": "ss"}
async def sscmd(self, message: Message):
"""Скидывает медиа по ссылке (работает там где отключено медиа)"""
text = utils.get_args_raw(message)
if not text:
for ss in ["<b>Нету ссылки -_-</b>"]:
await message.edit(ss)
await sleep(0.5)
else:
await message.delete()
await message.respond(
f'<a href="{text}">­</a>',
)