From 8ebc6223a6118aa6fef60ca85cf3102648a0c812 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Wed, 22 Jun 2022 11:50:39 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=96=20Update=20to=20v1.1.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pagermaid/__init__.py | 2 +- pagermaid/listener.py | 8 ++++---- pagermaid/modules/help.py | 2 +- pyromod/listen/listen.py | 2 +- requirements.txt | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/pagermaid/__init__.py b/pagermaid/__init__.py index e0a06f7..655dc46 100644 --- a/pagermaid/__init__.py +++ b/pagermaid/__init__.py @@ -10,7 +10,7 @@ import pyromod.listen from pyrogram import Client import sys -pgm_version = "1.1.0" +pgm_version = "1.1.1" CMD_LIST = {} module_dir = __path__[0] working_dir = getcwd() diff --git a/pagermaid/listener.py b/pagermaid/listener.py index ef76fb1..f9dc124 100644 --- a/pagermaid/listener.py +++ b/pagermaid/listener.py @@ -168,10 +168,10 @@ def listener(**args): if parameters is None: parameters = "" help_messages.update({ - f"{command}": {"permission": permission_name, - "use": f"**{lang('use_method')}:** `,{command} {parameters}`\n" - f"**{lang('need_permission')}:** `{permission_name}`\n" - f"{description}"} + f"{alias_command(command)}": {"permission": permission_name, + "use": f"**{lang('use_method')}:** `,{command} {parameters}`\n" + f"**{lang('need_permission')}:** `{permission_name}`\n" + f"{description}"} }) all_permissions.append(Permission(permission_name)) diff --git a/pagermaid/modules/help.py b/pagermaid/modules/help.py index 6376ebd..8183c8d 100644 --- a/pagermaid/modules/help.py +++ b/pagermaid/modules/help.py @@ -127,7 +127,7 @@ async def alias_commands(message: Message): elif len(message.parameter) == 1: if source_commands: texts.extend( - f'`{source_commands[i]}` --> `{to_commands[i]}`' + f'`{source_commands[i]}` > `{to_commands[i]}`' for i in range(len(source_commands)) ) diff --git a/pyromod/listen/listen.py b/pyromod/listen/listen.py index c635546..e3eb42b 100644 --- a/pyromod/listen/listen.py +++ b/pyromod/listen/listen.py @@ -59,7 +59,7 @@ class Client: self.listening.update({ chat_id: {"future": future, "filters": filters} }) - return await asyncio.wait_for(future, timeout, loop=self.loop) + return await asyncio.wait_for(future, timeout) @patchable async def ask(self, chat_id, text, filters=None, timeout=None, *args, **kwargs): diff --git a/requirements.txt b/requirements.txt index 8d7d219..c7e07b7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -pyrogram==2.0.27 +pyrogram==2.0.30 TgCrypto>=1.2.3 Pillow>=8.4.0 pytz>=2021.3