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,32 @@
# meta developer: @trololo_1
from .. import loader, utils
@loader.tds
class LsSendMod(loader.Module):
"""Отправка смс в лс по юзеру пользователя."""
strings = {'name':'LsSend'}
async def sendcmd(self, message):
""" .send {юзер} {текст или реплай}"""
try:
reply = await message.get_reply_message()
text = utils.get_args_raw(message)
id = str(text.split(' ')[0])
check = []
for i in text.split(' '):
check.append(i)
if len(check) <= 1:
send = reply
else:
send = str(text.split(' ', maxsplit=1)[1])
if send:
await message.client.send_message(id, send)
await message.edit('<b>Сообщение успешно отправлено!</b>')
else:
await message.edit('<b>Не было сделано реплая или нет текста.</b>')
except:
await message.edit('<b>Неверный юзер, юзера нет вообще, либо ещё какая то ошибка.</b>')