mirror of
https://github.com/TeamPGM/PagerMaid-Pyro.git
synced 2024-11-16 14:21:11 +00:00
🔖 Update to v1.4.5
Fix: ConnectionResetError Connection lost
This commit is contained in:
parent
f7416d4a21
commit
6609f91ce8
@ -22,8 +22,8 @@ from pagermaid.scheduler import scheduler
|
|||||||
import pyromod.listen
|
import pyromod.listen
|
||||||
from pyrogram import Client
|
from pyrogram import Client
|
||||||
|
|
||||||
pgm_version = "1.4.4"
|
pgm_version = "1.4.5"
|
||||||
pgm_version_code = 1404
|
pgm_version_code = 1405
|
||||||
CMD_LIST = {}
|
CMD_LIST = {}
|
||||||
module_dir = __path__[0]
|
module_dir = __path__[0]
|
||||||
working_dir = getcwd()
|
working_dir = getcwd()
|
||||||
|
@ -86,10 +86,10 @@ async def sh_eval(message: Message):
|
|||||||
)
|
)
|
||||||
async def send_log(message: Message):
|
async def send_log(message: Message):
|
||||||
"""Send log to a chat."""
|
"""Send log to a chat."""
|
||||||
if not exists("pagermaid.log.txt"):
|
if not exists("data/pagermaid.log.txt"):
|
||||||
return await message.edit(lang("send_log_not_found"))
|
return await message.edit(lang("send_log_not_found"))
|
||||||
await upload_attachment(
|
await upload_attachment(
|
||||||
"pagermaid.log.txt",
|
"data/pagermaid.log.txt",
|
||||||
message.chat.id,
|
message.chat.id,
|
||||||
message.reply_to_message_id or message.reply_to_top_message_id,
|
message.reply_to_message_id or message.reply_to_top_message_id,
|
||||||
thumb=f"pagermaid{sep}assets{sep}logo.jpg",
|
thumb=f"pagermaid{sep}assets{sep}logo.jpg",
|
||||||
|
Loading…
Reference in New Issue
Block a user