From 8f16c8574c204d59650de62601f34fc619f42eb7 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Fri, 18 Nov 2022 10:10:26 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=96=20Update=20to=20v1.2.16?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pagermaid/__init__.py | 2 +- pyromod/listen/temp_fix.py | 3 ++- requirements.txt | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/pagermaid/__init__.py b/pagermaid/__init__.py index 3997fee..997dcf0 100644 --- a/pagermaid/__init__.py +++ b/pagermaid/__init__.py @@ -15,7 +15,7 @@ from pyrogram import Client from pyromod.listen.temp_fix import temp_fix -pgm_version = "1.2.15" +pgm_version = "1.2.16" CMD_LIST = {} module_dir = __path__[0] working_dir = getcwd() diff --git a/pyromod/listen/temp_fix.py b/pyromod/listen/temp_fix.py index 7e67c9e..c4a00d5 100644 --- a/pyromod/listen/temp_fix.py +++ b/pyromod/listen/temp_fix.py @@ -11,7 +11,8 @@ async def temp_fix( ): parsed = await pyrogram.types.Message.old_parse(client, message, users, chats, is_scheduled, replies) # noqa if isinstance(message, pyrogram.raw.types.Message) and message.reply_to \ - and message.reply_to.forum_topic and not message.reply_to.reply_to_top_id: + and hasattr(message.reply_to, "forum_topic") and message.reply_to.forum_topic \ + and not message.reply_to.reply_to_top_id: parsed.reply_to_top_message_id = parsed.reply_to_message_id parsed.reply_to_message_id = None parsed.reply_to_message = None diff --git a/requirements.txt b/requirements.txt index 1e99757..fe353a5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -pyrogram==2.0.60 +pyrogram==2.0.61 TgCrypto==1.2.5 Pillow>=8.4.0 pytz>=2021.3 @@ -9,4 +9,4 @@ httpx apscheduler sqlitedict casbin==1.17.4 -sentry-sdk>=1.10.1 +sentry-sdk==1.11.0