From 27aec57c69615c6be3d46cd5ec18b399aee66d06 Mon Sep 17 00:00:00 2001 From: gmanka Date: Fri, 18 Oct 2024 21:20:12 +0400 Subject: [PATCH] [f] update msg after delay --- reposter/handlers/on_msg.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/reposter/handlers/on_msg.py b/reposter/handlers/on_msg.py index f1fc3d8..249ca48 100644 --- a/reposter/handlers/on_msg.py +++ b/reposter/handlers/on_msg.py @@ -35,6 +35,12 @@ async def on_new_msg( reposter.core.config.json.repost_delay_seconds, text='repost delay', ) + update_src_msg = await reposter.core.common.tg.client.get_messages( + chat_id=src_msg.chat.id, + message_ids=src_msg.id, + ) + assert isinstance(update_src_msg, pyrogram.types.Message) + src_msg = update_src_msg if src_msg.service: service = reposter.handlers.service.Service( target_any=self.target_any,