mirror of
https://github.com/TeamPGM/PagerMaid-Pyro.git
synced 2024-11-22 05:19:19 +00:00
🔖 Update to v1.1.1
This commit is contained in:
parent
2a1b54802b
commit
8ebc6223a6
@ -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()
|
||||||
|
@ -168,7 +168,7 @@ 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}"}
|
||||||
|
@ -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))
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -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):
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user