Do not reverse the list of fresh messages

Both reversed and original order do not make much sense
for the bot. Ideally bots should have their own key
to get the list of fresh messages in the order of IDs.
This commit is contained in:
link2xt
2022-11-30 22:38:25 +00:00
parent 9b04a04568
commit 4e2aeceeec

View File

@@ -32,7 +32,7 @@ async def main():
message.get_snapshot() for message in fresh_messages
]
fresh_message_snapshots = await asyncio.gather(*fresh_message_snapshot_tasks)
for snapshot in reversed(fresh_message_snapshots):
for snapshot in fresh_message_snapshots:
if not snapshot.is_info:
await snapshot.chat.send_text(snapshot.text)
await snapshot.message.mark_seen()