🔖 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
import sys
pgm_version = "1.1.0"
pgm_version = "1.1.1"
CMD_LIST = {}
module_dir = __path__[0]
working_dir = getcwd()

View File

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

View File

@ -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))
)

View File

@ -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):

View File

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