Scraping active Telegram chat members: message authors
Active chat members in Telegram are collected from message history: you take the authors from the last few days, and you get a list of people who are writing right now. The full member list won't work for this: most people in it are silent, and in many groups it's hidden by settings.
Why message authors are worth more than a full member list
In a group of ten thousand people, usually a few hundred write. The rest joined by link, read the rules and muted it, and some have already deleted Telegram. If you send a message to the whole list, most recipients won't see it.
Someone who posted last week definitely opened Telegram and reads this chat. On top of that, they showed interest in the topic at least once: asked a question, replied, shared a link. For talking to a live audience, this kind of list beats a long one.
There's also a technical reason. In many Telegram chats, the member list isn't shown to regular users, only admins can see it. But messages are always readable while the chat is open, and every author is visible. So scraping from history is often the only way.
What you can collect from an open chat's history
From each message you get the author data they made visible themselves: numeric ID, name and username, if they have one. You can usually see whether it's a bot, whether the person has Premium and a profile photo. Telegram shows the last seen time approximately, and for those who hid their status it only says "recently", "last week" or "last month".
There's usually no phone number: Telegram only shows it to people who have the person in their contacts, or if the person opened the number in privacy settings. What else you can and can't collect is covered in the article on scraping Telegram group members.
An author may not have a username. Then you can't tag them in a story or find them by @name, so decide in advance whether you need it.
How to filter by date
Telegram has no "show who wrote in the last 7 days" button. History runs from newer messages to older ones, so you read the feed backwards until you hit messages older than your date, and stop there. Everyone you came across along the way counts as active. A member list has no dates: Telegram doesn't say when someone joined, so there's nothing to filter "last few days" by.
If there are a lot of messages in the period, reading them takes a while. Each batch of history costs the account a separate request, and Telegram watches how often you make them.
How the TG Combine scraper does it
The scraper collects message authors. In the form there's a method called "Who wrote in the chat": the service reads the history and takes everyone who wrote in it. The default is "Automatic": it takes the member list first, and if that's hidden, scraping switches to authors on its own. "Members only" is faster, but in most groups it returns few people or none.
Settings for collecting active members:
- In the "Group or channel" field, enter the @name of an open chat. The account you scrape from must be in the group or have access to it. If you enter a channel, the service switches to its discussion group and takes commenters.
- Set the collection method to "Who wrote in the chat". "Automatic" works too, but the day limit only kicks in there when the member list turns out to be hidden.
- In the "For how many days" field, enter, say, 7: messages older than that won't be looked at. The maximum is 365 days, and if the field is empty, the service goes as deep as the view limit allows.
- "How many messages to view" sets the history depth: 1k, 3k or 10k, meaning up to 10,000 messages. That's a message count, not a people count. If the chat is quiet and the depth is small, you'll find almost nobody, even when "How many to collect" is high.
- "How many to collect" caps the number of people found per run: 100, 500, 2k or 10k. For a test, 100 is convenient.
If the day limit is on but scraping isn't by messages, the log will explain that it only applies when scraping by messages. That way you won't be waiting for recent people where there are no dates.
Filters on top of scraping
In the "Member filters" block you can narrow things down. "Only with username" is needed for mass tagging, because you can only tag someone in a story by username. "Only Premium" and "Only with photo" narrow the selection further. "Last seen no later than" takes 1 to 90 days, 7 by default, and hidden status gets filtered out by it. An author with a restricted profile may have no status, and such a person isn't filtered out; the scraping results show how many there were.
In "Advanced settings", skipping bots is on by default. The page size can be lowered to 50: Telegram returns data in batches, and smaller batches go slower but are gentler on the account.
"Last seen" works well together with "For how many days". The first cuts out people who haven't been around for a while, the second keeps those who wrote in this chat recently. The cleaner the result, the less you'll have to clean up later; that's covered in the article on filtering your audience after scraping.
What about export
On the free trial plan, collected people are shown as a counter, and you can use them right inside the service, for example in a mailing. You download the list as a file on paid plans. So the trial is enough for a first check: collect a hundred authors, see who ended up in the selection, and decide whether you need the file.
What to expect from this kind of selection
The author list depends on the chat. A quiet group gives a handful of people in a week, a noisy one gives thousands. If you need more, increase the period or the number of messages viewed, not just "How many to collect".
Some authors will turn out to be bots, advertisers, and people who post "selling my garage" once a year. The scraper only removes what you set in the filters and doesn't judge what the messages mean, so look through the list by eye before writing to these people.
Chats themselves are picked for the topic separately; how to do that is covered in the article on finding chats by keywords.
Frequently asked questions
How do I scrape active chat members in Telegram?
You collect message authors from the last few days: read the history backwards to your date and record everyone who wrote. In the TG Combine scraper that's the "Who wrote in the chat" method with the "For how many days" field.
How are message authors different from chat members?
Members are everyone in the group, including the silent ones. Authors wrote at least one message in the chosen period, so the odds that they read the chat are noticeably higher.
Can I scrape message authors if the member list is hidden?
Yes. A hidden list only closes off the member roster, while messages in an open chat and their authors stay visible. That's why "Automatic" switches to history on its own.
Can I scrape Telegram messages in full?
The text is read from an open chat's history, but the TG Combine scraper collects people, not a message archive. It doesn't output message texts as a separate result.
How do I limit scraping to the last few days?
In the "For how many days" field, enter a number, for example 7. It works when scraping by messages, and a member list has no dates, so there's nothing to filter by.
Does the scraper collect authors' phone numbers?
As a rule, no: Telegram only gives the number to people who have the person in their contacts, or if they opened the number in privacy settings. Numbers can't be guaranteed; more in the article on scraping phone numbers.
How many messages do I need to view to collect the number of people I need?
It depends on the chat: in a noisy group 1k is enough, in a quiet one even 10k may give few authors. Start with 3k and look at the result.
Can I scrape a private chat?
If the account is in the chat, messages are available in a private group too. If the account isn't there, there's nothing to read, and you'll get an error like CHANNEL_PRIVATE.