Skip to content

Commit

Permalink
[f] update msg after delay
Browse files Browse the repository at this point in the history
  • Loading branch information
gmankab committed Oct 18, 2024
1 parent fe48f57 commit 27aec57
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions reposter/handlers/on_msg.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 27aec57

Please sign in to comment.