File tree 1 file changed +11
-6
lines changed
1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -42,12 +42,17 @@ async def on_new_msg(
42
42
)
43
43
await stream_notify .notify_all ()
44
44
return
45
- else :
46
- if reposter .core .config .json .repost_delay_seconds :
47
- await reposter .funcs .handle .wait (
48
- reposter .core .config .json .repost_delay_seconds ,
49
- text = 'repost delay' ,
50
- )
45
+ elif reposter .core .config .json .repost_delay_seconds :
46
+ await reposter .funcs .handle .wait (
47
+ reposter .core .config .json .repost_delay_seconds ,
48
+ text = 'repost delay' ,
49
+ )
50
+ update_src_msg = await reposter .core .common .tg .client .get_messages (
51
+ chat_id = src_msg .chat .id ,
52
+ message_ids = src_msg .id ,
53
+ )
54
+ assert isinstance (update_src_msg , pyrogram .types .Message )
55
+ src_msg = update_src_msg
51
56
if src_msg .has_protected_content or src_msg .chat .has_protected_content :
52
57
if src_msg .media_group_id :
53
58
resend_media_group = reposter .handlers .resend_restricted .ResendMediaGroup (
You can’t perform that action at this time.
0 commit comments