🔖 Update to v1.2.2

Upgrade pyrogram to 2.0.33
Add user info to log
This commit is contained in:
xtaodada 2022-07-20 12:01:15 +08:00
parent f66530ac87
commit 5cb2cac42a
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659
3 changed files with 6 additions and 3 deletions

View File

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

View File

@ -17,6 +17,9 @@ async def main():
await bot.start() await bot.start()
me = await bot.get_me()
logs.info(f"{lang('save_id')} {me.first_name}({me.id})")
for module_name in module_list: for module_name in module_list:
try: try:
import_module(f"pagermaid.modules.{module_name}") import_module(f"pagermaid.modules.{module_name}")

View File

@ -1,4 +1,4 @@
pyrogram==2.0.30 pyrogram==2.0.33
TgCrypto>=1.2.3 TgCrypto>=1.2.3
Pillow>=8.4.0 Pillow>=8.4.0
pytz>=2021.3 pytz>=2021.3
@ -8,4 +8,4 @@ psutil>=5.8.0
httpx httpx
apscheduler apscheduler
sqlitedict sqlitedict
casbin casbin==1.16.9