diff --git a/pagermaid/__init__.py b/pagermaid/__init__.py index 6a121dd..e375a0d 100644 --- a/pagermaid/__init__.py +++ b/pagermaid/__init__.py @@ -15,7 +15,7 @@ from pyrogram import Client from pyromod.listen.temp_fix import temp_fix -pgm_version = "1.2.17" +pgm_version = "1.2.18" CMD_LIST = {} module_dir = __path__[0] working_dir = getcwd() @@ -57,12 +57,15 @@ with contextlib.suppress(ImportError): if not scheduler.running: scheduler.start() -bot = Client("pagermaid", - session_string=Config.STRING_SESSION, - api_id=Config.API_ID, - api_hash=Config.API_HASH, - ipv6=Config.IPV6, - proxy=Config.PROXY) +bot = Client( + "pagermaid", + session_string=Config.STRING_SESSION, + api_id=Config.API_ID, + api_hash=Config.API_HASH, + ipv6=Config.IPV6, + proxy=Config.PROXY, + app_version=f"PagerMaid {pgm_version}", +) # temp fix topics group setattr(pyrogram.types.Message, "old_parse", getattr(pyrogram.types.Message, "_parse")) setattr(pyrogram.types.Message, "_parse", temp_fix) @@ -77,8 +80,8 @@ async def log(message): return try: await bot.send_message( - Config.LOG_ID, - message + Config.LOG_ID, + message ) except Exception: Config.LOG = False diff --git a/requirements.txt b/requirements.txt index 3daf84e..75baf04 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -pyrogram==2.0.63 +pyrogram==2.0.69 TgCrypto==1.2.5 Pillow>=8.4.0 pytz>=2021.3