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,25 @@
from .. import loader, utils
from telethon import functions
@loader.tds
class RenameMod(loader.Module):
"""Переиминовать или добавить в контакт."""
strings={"name": "Rename"}
async def renamecmd(self, message):
args = utils.get_args_raw(message)
reply = await message.get_reply_message()
if not args:
return await message.edit("<b>Нету аргументов.</b>")
if not reply:
return await message.edit("<b>Где реплай?</b>")
else:
user = await message.client.get_entity(reply.sender_id)
try:
await message.client(functions.contacts.AddContactRequest(id=user.id,
first_name=args,
last_name=' ',
phone='мобила',
add_phone_privacy_exception=False))
await message.edit(f"<code>{user.id}</code> <b>переименован(-а) на</b> <code>{args}</code>")
except: return await message.edit("<b>Что то пошло не так...</b>")