Skip to content

Commit a652967

Browse files
Update fwdall.py
1 parent 94e9cde commit a652967

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/fwdall.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ async def forward(client: Client, message: Message):
2020
)
2121
return
2222
msgs = []
23-
async for msg in client.get_chat_history(message.chat.id):
23+
async for msg in client.get_chat_history(message.chat.id, reverse=True):
2424
msgs.append(msg.id)
2525
if len(msgs) >= 100:
2626
try:

0 commit comments

Comments
 (0)