From 9cc6fd2b19a777556790aa6b721b038f04c3dffa Mon Sep 17 00:00:00 2001 From: xtaodada Date: Tue, 18 Apr 2023 19:33:15 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=96=20Update=20to=20v1.3.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pagermaid/__init__.py | 4 ++-- pyromod/listen/listen.py | 2 +- requirements.txt | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/pagermaid/__init__.py b/pagermaid/__init__.py index f2bcbab..cedd3e6 100644 --- a/pagermaid/__init__.py +++ b/pagermaid/__init__.py @@ -21,8 +21,8 @@ from pagermaid.scheduler import scheduler import pyromod.listen from pyrogram import Client -pgm_version = "1.3.1" -pgm_version_code = 1301 +pgm_version = "1.3.2" +pgm_version_code = 1302 CMD_LIST = {} module_dir = __path__[0] working_dir = getcwd() diff --git a/pyromod/listen/listen.py b/pyromod/listen/listen.py index 2e49b05..825dfad 100644 --- a/pyromod/listen/listen.py +++ b/pyromod/listen/listen.py @@ -115,7 +115,7 @@ class Client: pyrogram.raw.functions.messages.ReadDiscussion( peer=peer, msg_id=i.id, - read_max_id=i.read_inbox_max_id + i.unread_count, + read_max_id=i.top_message, ) ) return await self.oldread_chat_history(chat_id, max_id) # noqa diff --git a/requirements.txt b/requirements.txt index 4e671e5..52c9c0f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,18 +1,18 @@ pyrogram==2.0.103 TgCrypto==1.2.5 -Pillow>=8.4.0 -pytz>=2021.3 +Pillow>=9.0.0 +pytz>=2023.3 PyYAML>=6.0 coloredlogs>=15.0.1 psutil>=5.8.0 httpx~=0.23.3 apscheduler>=3.10.1 sqlitedict~=2.1.0 -casbin==1.18.1 -sentry-sdk==1.18.0 +casbin==1.18.2 +sentry-sdk==1.19.1 PyQRCode>=1.2.1 PyPng -fastapi==0.94.1 +fastapi==0.95.1 amis-python==1.0.7 python-jose uvicorn