From 6476c4addad9d52fde61bb98cd7c396dccee22f0 Mon Sep 17 00:00:00 2001 From: hikariatama Date: Mon, 5 Sep 2022 06:17:05 +0000 Subject: [PATCH] 1.4.2 - Fix authorization error --- CHANGELOG.md | 4 ++++ Pipfile | 2 +- hikka/__main__.py | 6 ++++-- hikka/version.py | 2 +- requirements.txt | 2 +- 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a62bca3..22acc13 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Hikka Changelog +## 🌑 Hikka 1.4.2 + +- Fix authorization error + ## 🌑 Hikka 1.4.1 - Create new type :obj:`hikka.tl_cache.CustomTelegramClient` to avoid monkeypatching diff --git a/Pipfile b/Pipfile index 86bb8d9..58e085f 100644 --- a/Pipfile +++ b/Pipfile @@ -7,7 +7,7 @@ name = 'pypi' python_version = '3.9.13' [packages] -hikka-tl = '==1.24.9' +hikka-tl = '==1.24.10' aiofile = '==3.8.1' pythondialog = '==3.5.3' gitpython = '==3.1.27' diff --git a/hikka/__main__.py b/hikka/__main__.py index f612e85..bf94bcf 100755 --- a/hikka/__main__.py +++ b/hikka/__main__.py @@ -103,7 +103,9 @@ elif __package__ != "hikka": # In case they did python __main__.py print("🚫 Error: you cannot run this as a script; you must execute as a package") else: try: - import telethon # noqa: F401 + # If telethon is not installed, just skip to a part of main startup + # then main.py will through an error and re-install all deps + import telethon except Exception: pass else: @@ -114,7 +116,7 @@ else: from telethon.extensions.html import CUSTOM_EMOJIS # skipcq import telethon - if tuple(map(int, telethon.__version__.split("."))) < (1, 24, 9): + if tuple(map(int, telethon.__version__.split("."))) < (1, 24, 10): raise ImportError except ImportError: print("🔄 Reinstalling Hikka-TL...") diff --git a/hikka/version.py b/hikka/version.py index 59e460e..c25c87f 100644 --- a/hikka/version.py +++ b/hikka/version.py @@ -1,5 +1,5 @@ """Represents current userbot version""" -__version__ = (1, 4, 1) +__version__ = (1, 4, 2) import git import os diff --git a/requirements.txt b/requirements.txt index 8439dd7..5ccd008 100755 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -hikka-tl==1.24.9 +hikka-tl==1.24.10 aiofile==3.8.1 pythondialog==3.5.3 gitpython==3.1.27