From 944a8d6b73b146fb450d5b11489ec97504422341 Mon Sep 17 00:00:00 2001 From: C0dwiz Date: Sun, 10 Nov 2024 17:57:56 +0300 Subject: [PATCH] upd telethon --- hikka/__main__.py | 6 +++--- hikka/modules/settings.py | 9 ++++++--- hikka/translations.py | 2 +- hikka/utils.py | 2 +- requirements.txt | 4 ++-- 5 files changed, 13 insertions(+), 10 deletions(-) diff --git a/hikka/__main__.py b/hikka/__main__.py index b694e6a..79df82d 100644 --- a/hikka/__main__.py +++ b/hikka/__main__.py @@ -28,9 +28,9 @@ if ( print("Type no_sudo if your system has no sudo (Debian vibes)") if input("> ").lower() != "force_insecure": sys.exit(1) - elif input("> ").lower() != 'no_sudo': - os.environ['NO_SUDO'] = '1' - print('Added NO_SUDO in your environment variables') + elif input("> ").lower() != "no_sudo": + os.environ["NO_SUDO"] = "1" + print("Added NO_SUDO in your environment variables") restart() diff --git a/hikka/modules/settings.py b/hikka/modules/settings.py index de580be..fbba15f 100644 --- a/hikka/modules/settings.py +++ b/hikka/modules/settings.py @@ -246,11 +246,14 @@ class CoreMod(loader.Module): self._db.clear() self._db.save() await utils.answer(call, self.strings("db_cleared")) - + async def installationcmd(self, message: Message): """| Guide of installation""" - await message.delete() - await self.client.send_file(message.peer_id, "https://i.imgur.com/Tfj0Wud.png", caption = self.strings["installation"]) + await self.client.send_file( + message.peer_id, + "https://i.imgur.com/Tfj0Wud.png", + caption=self.strings["installation"], + ) diff --git a/hikka/translations.py b/hikka/translations.py index 94833a6..44fb1b9 100644 --- a/hikka/translations.py +++ b/hikka/translations.py @@ -42,7 +42,7 @@ class BaseTranslator: pack: Path, prefix: str = "hikka.modules.", ) -> typing.Optional[dict]: - return self._get_pack_raw(pack.read_text(encoding='utf-8'), pack.suffix, prefix) + return self._get_pack_raw(pack.read_text(encoding="utf-8"), pack.suffix, prefix) def _get_pack_raw( self, diff --git a/hikka/utils.py b/hikka/utils.py index 0b5626c..d11e5c0 100644 --- a/hikka/utils.py +++ b/hikka/utils.py @@ -916,7 +916,7 @@ def get_named_platform() -> str: if main.IS_SERV00: return "💎 Serv00" - + if main.IS_GOORM: return "🦾 GoormIDE" diff --git a/requirements.txt b/requirements.txt index 76acc7e..149f6fb 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -hikka-tl-new==2.0.8 +git+https://github.com/C0dwiz/Telethon.git aiofile==3.8.1 gitpython==3.1.27 meval==2.5 @@ -13,6 +13,6 @@ werkzeug==2.2.2 psutil==6.0.0 tgcrypto==1.2.5 rsa==4.9 -ruamel.yaml==0.17.21 +ruamel.yaml==0.17.10 # Python 3.8+