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