mirror of
https://github.com/TeamPGM/PagerMaid-Pyro.git
synced 2024-11-22 07:47:42 +00:00
🔖 Update to v1.2.18
This commit is contained in:
parent
76535d7e05
commit
e78deaec9e
@ -15,7 +15,7 @@ from pyrogram import Client
|
|||||||
|
|
||||||
from pyromod.listen.temp_fix import temp_fix
|
from pyromod.listen.temp_fix import temp_fix
|
||||||
|
|
||||||
pgm_version = "1.2.17"
|
pgm_version = "1.2.18"
|
||||||
CMD_LIST = {}
|
CMD_LIST = {}
|
||||||
module_dir = __path__[0]
|
module_dir = __path__[0]
|
||||||
working_dir = getcwd()
|
working_dir = getcwd()
|
||||||
@ -57,12 +57,15 @@ with contextlib.suppress(ImportError):
|
|||||||
|
|
||||||
if not scheduler.running:
|
if not scheduler.running:
|
||||||
scheduler.start()
|
scheduler.start()
|
||||||
bot = Client("pagermaid",
|
bot = Client(
|
||||||
session_string=Config.STRING_SESSION,
|
"pagermaid",
|
||||||
api_id=Config.API_ID,
|
session_string=Config.STRING_SESSION,
|
||||||
api_hash=Config.API_HASH,
|
api_id=Config.API_ID,
|
||||||
ipv6=Config.IPV6,
|
api_hash=Config.API_HASH,
|
||||||
proxy=Config.PROXY)
|
ipv6=Config.IPV6,
|
||||||
|
proxy=Config.PROXY,
|
||||||
|
app_version=f"PagerMaid {pgm_version}",
|
||||||
|
)
|
||||||
# temp fix topics group
|
# temp fix topics group
|
||||||
setattr(pyrogram.types.Message, "old_parse", getattr(pyrogram.types.Message, "_parse"))
|
setattr(pyrogram.types.Message, "old_parse", getattr(pyrogram.types.Message, "_parse"))
|
||||||
setattr(pyrogram.types.Message, "_parse", temp_fix)
|
setattr(pyrogram.types.Message, "_parse", temp_fix)
|
||||||
@ -77,8 +80,8 @@ async def log(message):
|
|||||||
return
|
return
|
||||||
try:
|
try:
|
||||||
await bot.send_message(
|
await bot.send_message(
|
||||||
Config.LOG_ID,
|
Config.LOG_ID,
|
||||||
message
|
message
|
||||||
)
|
)
|
||||||
except Exception:
|
except Exception:
|
||||||
Config.LOG = False
|
Config.LOG = False
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
pyrogram==2.0.63
|
pyrogram==2.0.69
|
||||||
TgCrypto==1.2.5
|
TgCrypto==1.2.5
|
||||||
Pillow>=8.4.0
|
Pillow>=8.4.0
|
||||||
pytz>=2021.3
|
pytz>=2021.3
|
||||||
|
Loading…
Reference in New Issue
Block a user