remove deprecated message.forward_date

This commit is contained in:
Abhi
2025-04-24 23:07:50 +05:30
parent aaefe29b95
commit 45a2c70775
2 changed files with 2 additions and 2 deletions

View File

@@ -61,7 +61,7 @@ async def ids(_, message: Message):
]
)
if rtm.forward_date and (ffc := rtm.forward_origin.chat.sender_chat):
if rtm.forward_origin.date and (ffc := rtm.forward_origin.chat.sender_chat):
text = "\n".join(
[
text,

View File

@@ -223,7 +223,7 @@ async def render_message(app: Client, message: types.Message) -> dict:
author["name"] = get_full_name(from_user)
if message.author_signature:
author["rank"] = message.author_signature
elif message.chat.type != "supergroup" or message.forward_date:
elif message.chat.type != "supergroup" or message.forward_origin.date:
author["rank"] = ""
else:
try: