# * _ __ __ _ _
# * / \ _ _ _ __ ___ _ __ __ _| \/ | ___ __| |_ _| | ___ ___
# * / _ \| | | | '__/ _ \| '__/ _` | |\/| |/ _ \ / _` | | | | |/ _ \/ __|
# * / ___ \ |_| | | | (_) | | | (_| | | | | (_) | (_| | |_| | | __/\__ \
# * /_/ \_\__,_|_| \___/|_| \__,_|_| |_|\___/ \__,_|\__,_|_|\___||___/
# *
# * © Copyright 2024
# *
# * https://t.me/AuroraModules
# *
# * 🔒 Code is licensed under GNU AGPLv3
# * 🌐 https://www.gnu.org/licenses/agpl-3.0.html
# * ⛔️ You CANNOT edit this file without direct permission from the author.
# * ⛔️ You CANNOT distribute this file if you have modified it without the direct permission of the author.
# Name: Deanon
# Author: Felix?
# Commands:
# .deanon
# scope: hikka_only
# meta developer: @AuroraModules
# meta pic: https://i.postimg.cc/Hx3Zm8rB/logo.png
# meta banner: https://te.legra.ph/file/9bf5a040f3fcab0caf689.jpg
__version__ = (1, 0, 0)
from telethon.tl.types import Message # type: ignore
from .. import loader
@loader.tds
class Deanon(loader.Module):
strings = {
"name": "Deanon",
"try_d1": "You can't do that. An Internet hero.",
"try_d2": "Once again, I will delete the account for such jokes.",
}
strings_ru = {
"try_d1": "Нельзя таким заниматься. Интернет - герой.",
"try_d2": "Еще раз и удалю аккаунт за такие приколы.",
}
strings_uz = {
"try_d1": "Siz buni qila olmaysiz. Internet qahramoni.",
"try_d2": "Bunday hazillar uchun yana bir bor o'z akkauntimni o'chirib tashlayman.",
}
strings_de = {
"try_d1": "Das kannst du nicht machen. Internetheld.",
"try_d2": "Noch einmal werde ich meinen Account für solche Witze löschen.",
}
strings_es = {
"try_d1": "No puedes hacer eso. Héroe de Internet.",
"try_d2": "Una vez más eliminaré mi cuenta por este tipo de bromas.",
}
@loader.command(
ru_doc="Поиск по @UserName/Number/Email",
uz_doc="Qidiruv @UserName/Number/Email",
de_doc="Suche nach @UserName/Number/Email",
es_doc="Buscar por @UserName/Number/Email",
)
async def deanon(self, message: Message):
"""Search by @UserName/Number/Email"""
await message.delete()
if not hasattr(self, "flag"):
self.flag = 1
else:
self.flag += 1
if self.flag <= 1:
await self.client.send_message(message.peer_id, self.strings["try_d1"])
else:
await self.client.send_message(message.peer_id, self.strings["try_d2"])