🔖 Update to v1.1.1

This commit is contained in:
xtaodada 2022-06-22 11:50:39 +08:00
parent 2a1b54802b
commit 8ebc6223a6
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659
5 changed files with 8 additions and 8 deletions

View File

@ -10,7 +10,7 @@ import pyromod.listen
from pyrogram import Client from pyrogram import Client
import sys import sys
pgm_version = "1.1.0" pgm_version = "1.1.1"
CMD_LIST = {} CMD_LIST = {}
module_dir = __path__[0] module_dir = __path__[0]
working_dir = getcwd() working_dir = getcwd()

View File

@ -168,10 +168,10 @@ def listener(**args):
if parameters is None: if parameters is None:
parameters = "" parameters = ""
help_messages.update({ help_messages.update({
f"{command}": {"permission": permission_name, f"{alias_command(command)}": {"permission": permission_name,
"use": f"**{lang('use_method')}:** `,{command} {parameters}`\n" "use": f"**{lang('use_method')}:** `,{command} {parameters}`\n"
f"**{lang('need_permission')}:** `{permission_name}`\n" f"**{lang('need_permission')}:** `{permission_name}`\n"
f"{description}"} f"{description}"}
}) })
all_permissions.append(Permission(permission_name)) all_permissions.append(Permission(permission_name))

View File

@ -127,7 +127,7 @@ async def alias_commands(message: Message):
elif len(message.parameter) == 1: elif len(message.parameter) == 1:
if source_commands: if source_commands:
texts.extend( texts.extend(
f'`{source_commands[i]}` --> `{to_commands[i]}`' f'`{source_commands[i]}` > `{to_commands[i]}`'
for i in range(len(source_commands)) for i in range(len(source_commands))
) )

View File

@ -59,7 +59,7 @@ class Client:
self.listening.update({ self.listening.update({
chat_id: {"future": future, "filters": filters} chat_id: {"future": future, "filters": filters}
}) })
return await asyncio.wait_for(future, timeout, loop=self.loop) return await asyncio.wait_for(future, timeout)
@patchable @patchable
async def ask(self, chat_id, text, filters=None, timeout=None, *args, **kwargs): async def ask(self, chat_id, text, filters=None, timeout=None, *args, **kwargs):

View File

@ -1,4 +1,4 @@
pyrogram==2.0.27 pyrogram==2.0.30
TgCrypto>=1.2.3 TgCrypto>=1.2.3
Pillow>=8.4.0 Pillow>=8.4.0
pytz>=2021.3 pytz>=2021.3