# █████████████████████████████████████████ # █────██────█────█────█───█────█────█────█ # █─██──█─██─█─██─█─██─██─██─██─█─██─█─██─█ # █─██──█─██─█────█─██─██─██─██─█────█─██─█ # █─██──█─██─█─█─██─██─██─██─██─█─█─██─██─█ # █────██────█─█─██────██─██────█─█─██────█ # █████████████████████████████████████████ # # # Copyright 2022 t.me/Dorotoro # https://www.gnu.org/licenses/agpl-3.0.html # # meta banner: https://raw.githubusercontent.com/dorotorothequickend/DorotoroModules/main/banners/DorotoroAccountDeleter.png # meta developer: @DorotoroMods from .. import loader, utils import os import asyncio from telethon import functions from telethon.tl.functions.account import UpdateProfileRequest @loader.tds class AccountDeleter(loader.Module): strings = {"name": "AccountDeleter"} @loader.command() async def delacc(self, m): "- удаляет ваш аккаунт (просто меняет вашу аватарку и ник)." text = "Удаление аккаунта через..." await utils.answer(m, f"{text} 10 ✈️") asyncio.sleep(0.5) await utils.answer(m, f"{text} 6 ✈️") asyncio.sleep(0.7) await utils.answer(m, f"{text} 3 ✈️") asyncio.sleep(1) await utils.answer(m, f"{text} 1 ✈️") asyncio.sleep(0.8) photo = "https://0x0.st/oJqh.jpg" photo_ = await self.client.send_file("me", photo) avatar = await self.client.upload_file(await self.client.download_file(photo_, bytes)) await self.client(functions.photos.UploadProfilePhotoRequest(avatar)) await photo_.delete() await self._client(functions.account.UpdateProfileRequest(first_name='Deleted Account', last_name='', about='Аккаунт удалён. Вся информация на https://telegram.org/faq')) await utils.answer(m, "Ваш аккаунт полностью удалён. 😦")