🔖 Update to v1.4.5

Fix: ConnectionResetError Connection lost
This commit is contained in:
xtaodada 2023-12-17 00:22:26 +08:00
parent f7416d4a21
commit 6609f91ce8
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659
2 changed files with 4 additions and 4 deletions

View File

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

View File

@ -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",