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,23 @@
from .. import loader, utils
from telethon.errors import MessageEmptyError
def register(cb):
cb(ReverseMod())
class ReverseMod(loader.Module):
"""Реверс текста."""
strings = {'name': 'Reverse'}
async def revcmd(self, message):
"""Используй .rev <текст или реплай>."""
try:
text = utils.get_args_raw(message)
reply = await message.get_reply_message()
if not text and not reply:
return await message.edit("Нет текста или реплая.")
if reply:
return await message.edit(f"{reply.raw_text}"[::-1])
if text:
return await message.edit(f"{text}"[::-1])
except MessageEmptyError:
return await message.edit("Это не текст.")