
Telegram Channels Scraper
Pricing
Pay per usage

Telegram Channels Scraper
Scrapes channels data from Telegram
5.0 (1)
Pricing
Pay per usage
8
Total users
131
Monthly users
60
Runs succeeded
99%
Issues response
1.1 days
Last modified
17 days ago
random posts scrapping
Closed
i've run various tests at this point and noticed that the actor doesn't scrape the latest post. for instance, if you pick scraping 5 posts, they are gonna be 5 random posts (quite recent but not the latest) if there's a way to fix it or i'm doing something wrong, help me, please

Thank you for reporting this issue! You're absolutely right, and I've identified the problem.
The limitation was originally designed for scraping more than 20 posts (which are returned by default), so sorting wasn't implemented initially. When you requested 5 posts, the actor was simply taking the first 5 messages from the unsorted collection, which resulted in getting somewhat random recent posts rather than the actual latest ones.
I've now added proper sorting functionality:
- Messages are now sorted by ID in descending order (newest first) after each pagination iteration
- There's also a final sort at the end to guarantee the correct order
- This ensures that when you request N messages, you'll get exactly the N most recent posts
The fix has been implemented and you can now test it to see how it works. When you scrape 5 posts, you should now get the 5 most recent messages from the channel.
Please try running the actor again.
mitya.ivent
just tested, works correctly, thank you!