How to Get a Telegram Channel Subscribers List in Python
Can you get a Telegram channel subscribers list with Python? Telethon/MTProto guide to admin limits, Bot API gaps, 200-result search and safe automation.

Quick answer: can you get a Telegram channel subscribers list?
Use the Bot API for a count. For a list, an authorized Telethon session can sample the participants Telegram makes visible. A public channel URL alone gives you no guarantee of list access or coverage.
| What you need | What to use | What it returns |
|---|---|---|
| Subscriber count | Bot API getChatMemberCount | A number for a channel the bot can access. |
| One known user | Bot API getChatMember with a user ID | Membership status. Lookups for other users are only guaranteed when the bot is an admin. |
| Visible members in a channel you administer | Telethon iter_participants with a limit | A bounded sample. Visibility depends on the session and Telegram permissions. |
| Full list for another public channel | Ask its administrator | A public channel handle does not grant participant access. |
Why do you need that list?
If you have a Telegram channel you might want to know who follows you. Other social media platforms shows this info but not Telegram (yet).
I personally have a big channel (9k subs) and noticed that a lot of cool guys & girls follows me (sometimes they DM me). I want to know all my subs since I may find someone I'd like to meet.
The problem
A public @username helps you find the channel. It does not grant access to the subscriber list. Telegram decides what a session can see. The MTProto participant method documents errors for missing admin rights or private channel access.
The solution
Run Telethon on a channel you administer
Install Telethon 1.x with python3 -m pip install "telethon>=1,<2". Set TG_API_ID and TG_API_HASH from my.telegram.org, and TG_CHANNEL to the channel’s @username. Run the script with your own user account. Telethon can ask you to sign in on the first run. Keep the generated channel_subs.session file private.
Choose what to search for
Pick one to three short terms a name or username might actually contain. For example, save the code as subscribers.py and run python3 subscribers.py alex ann. Overlapping queries can find the same person, so merge by user ID. Skip the terms to take a single unfiltered sample.
Final Telethon snippet
import asyncio
import os
import sys
from telethon import TelegramClient, errors
async def main():
terms = [term.strip() for term in sys.argv[1:]]
if len(terms) > 3 or any(not term for term in terms):
raise SystemExit("Pass up to three non-empty search terms.")
async with TelegramClient(
"channel_subs",
int(os.environ["TG_API_ID"]),
os.environ["TG_API_HASH"],
flood_sleep_threshold=0,
) as client:
try:
channel = await client.get_entity(os.environ["TG_CHANNEL"])
permissions = await client.get_permissions(channel, "me")
if not permissions or not permissions.is_admin:
raise SystemExit("Use a channel you administer.")
ids = set()
for term in terms or [""]:
remaining = 25 - len(ids)
if not remaining:
break
async for user in client.iter_participants(
channel, search=term, limit=remaining
):
ids.add(user.id)
except (errors.ChatAdminRequiredError, errors.ChannelPrivateError):
raise SystemExit("Telegram denied access to this channel.")
except errors.FloodWaitError as exc:
raise SystemExit(f"Telegram asked you to wait {exc.seconds} seconds.")
for user_id in sorted(ids):
print(user_id)
print(f"Visible participants in sample: {len(ids)}")
if __name__ == "__main__":
asyncio.run(main())The script prints unique IDs locally, then the sample size. Visible participants in sample: 25 means it reached its sample limit. For a channel count, call the Bot API’s getChatMemberCount with a bot that can access the channel.
Searching by short strings can return some matches. Treat the often-quoted 200 results as an observation, since Telegram does not document it as a guarantee for every channel or query. Search does not establish completeness or bypass permissions. Telethon’s iter_participants documentation says result order is unspecified and the old aggressive flag no longer works.
What's next?
A few things I wanted to do with the list:
- See what subscribers write about themselves. A keyword cloud from bios can give you a rough feel for the audience.
- Find projects and channels people link to in their profiles, or discover someone I might want to meet.
- See how the audience changes over time. Use aggregate counts or join and leave events you actually observed. A user disappearing from a search sample is not evidence they unsubscribed.
Keep the sample local, and collect extra profile fields only if you need them for the task.
Thanks for reading. Bookmark & share this article with friends!
More hacks from me:
- This website!
- twitter.com/danokhlopkov
- t.me/danokhlopkov (ru tg blog)
FAQ: Telegram channel subscribers in Python
Can I export all subscribers from a Telegram channel with Python?
Telethon can return participants visible to your account. A successful sample does not establish that all subscribers are accessible, even if you administer the channel.
Does the Telegram Bot API return a channel subscribers list?
It provides a member count and a lookup for a known user ID. There is no Bot API method that enumerates channel subscribers.
Can I get subscribers from someone else’s public channel?
Only when Telegram grants your session access to those participants. Expect permission errors in channels you do not administer.