fix: temp fix

This commit is contained in:
xtaodada 2024-06-07 23:38:42 +08:00
parent fcae61039b
commit 148a393068
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -6,11 +6,14 @@ async def temp_fix(
message: pyrogram.raw.base.Message, message: pyrogram.raw.base.Message,
users: dict, users: dict,
chats: dict, chats: dict,
topics: dict = None,
is_scheduled: bool = False, is_scheduled: bool = False,
replies: int = 1, replies: int = 1,
business_connection_id: str = None,
reply_to_message: "raw.base.Message" = None
): ):
parsed = await pyrogram.types.Message.old_parse( parsed = await pyrogram.types.Message.old_parse(
client, message, users, chats, is_scheduled, replies client, message, users, chats, topics, is_scheduled, replies, business_connection_id, reply_to_message
) # noqa ) # noqa
if ( if (
isinstance(message, pyrogram.raw.types.Message) isinstance(message, pyrogram.raw.types.Message)