🔖 Update to v1.2.16

This commit is contained in:
xtaodada 2022-11-18 10:10:26 +08:00
parent d215e293f8
commit 8f16c8574c
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659
3 changed files with 5 additions and 4 deletions

View File

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

View File

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

View File

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