remove deprecated message.forward_date
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user