# Mastros.online: Telegram Data Export > Mastros.online is a Chrome extension (Manifest V3) that exports Telegram group members, chat messages, recent contacts and mutual groups to CSV, JSON or JSONL, and bulk-downloads media, from Telegram Web. It saves only what the signed-in account can already see. It operates entirely client-side in the user's browser and has nothing to set up: a single extraction engine reads Telegram's own structured data through the session the user is already signed into on Telegram Web. There are no API credentials to create, no second login, and no modes to choose between. No user data is sent to external servers for processing. ## Product Overview Mastros.online is built for marketers, researchers, OSINT analysts, community managers, and growth operators who need to get structured data out of Telegram and into a spreadsheet. It works by injecting a sidebar UI into web.telegram.org and reading Telegram's own structured data over the user's existing authenticated session. Because it reads structured data rather than the text painted on screen, it returns `@handles`, bios, and phone numbers that the rendered interface never displays, and it behaves identically in every one of the 50+ languages the Telegram interface ships in. The extension does not require a separate app install: it runs entirely as a Chrome extension. It does not work on Telegram Desktop, Telegram mobile apps, or third-party Telegram clients. It only works on https://web.telegram.org. Mastros.online is not affiliated with, endorsed by, or partnered with Telegram. Users are solely responsible for complying with Telegram's Terms of Service when using this tool. This document covers the Telegram extension in depth. Mastros also ships a WhatsApp Web exporter, a read-only LinkedIn & Sales Navigator exporter an Instagram follower export and a TikTok engagement rate calculator. See https://www.mastros.online/llms.txt for the family overview. ### How It Works 1. Install the Chrome extension from the Chrome Web Store 2. Open Telegram Web (web.telegram.org) in Chrome 3. The extension automatically injects a collapsible sidebar on the right side of the page 4. Choose an extractor (Group Members, Chat Messages, Recent Contacts, Mutual Groups, or Media Download): all five work immediately, with no connection or setup step 5. Follow the on-screen instructions for each mode: each tells you exactly what to do in Telegram first 6. Click Start to begin extraction 7. View progress in real-time with live activity feeds 8. Export your data as CSV, JSON, or JSONL from the Export tab ### Architecture - **Content Script** (`content.js`): Injected into web.telegram.org. Handles sidebar injection, profile persistence, usage tracking, and orchestrates extraction sessions - **Sidebar** (`sidebar.html`, `sidebar.js`, `sidebar.css`): The main UI, rendered as an iframe injected into the Telegram Web page. Contains extractor selection, configuration, progress display, export controls, and settings - **Extraction engine** (`tgLiveClient.js`): The single engine. Runs in the Telegram Web page context and reads structured data (members, messages, contacts, shared groups, media) through the session the user is already signed into. It calls only read/fetch methods; it never sends, joins, or modifies anything - **Background Service Worker** (`background.js`): Handles account sync, quota management, Stripe billing integration, usage tracking, and analytics relay - **Analytics** (`analytics.js`): Anonymized usage telemetry via PostHog --- ## Extraction Modes: Detailed ### Group Members Extracts full member profiles from one or multiple Telegram groups. **Requirements**: none beyond being signed in to Telegram Web and being a member of the group. **Three selection sub-modes**: - **Current Group**: Extracts from whichever group is currently open in Telegram Web - **Manual Input**: Paste @handles or t.me links for one or more groups. The extension resolves and extracts them - **Browse Groups**: Click "Load my groups" to fetch your group list, then select which groups to extract with checkboxes. Filters for groups only vs. all chats **Data collected per member**: name, username (@handle), telegram_user_id, role (admin/member/creator), bio, phone number (if visible to the user), source_group, scraped_at timestamp **Locked member lists**: many groups hide their member list from non-admins. When that happens the extension says so and instead collects everyone who has **posted** in the chat, resolving each author to a full profile. Broadcast channels where only the owner posts are detected up front and skipped rather than scanned pointlessly. **Options**: - Deduplication across multiple groups - Bounded, resumable run size: a run collects a set number of messages/profiles then pauses to ask, rather than running unbounded **How it works internally**: a roster pass pages through the group's member list where it is enumerable; an author pass loads chat history and resolves message senders to profiles for admin-locked groups. Rows from both passes are merged and deduplicated by user ID; rows with no handle are kept and flagged. Telegram's rate-limit responses are honored before the run continues. ### Chat Messages Extracts message history and sender information from any open chat conversation. - Reads message history for the open chat, including sender profile data - Extracts: message text, sender name, sender user ID, timestamp, reply/forward metadata - Deduplicated: the same message is never saved twice - The user chooses how many messages to collect **Data collected per message**: message_id, timestamp, text, sender_id, sender_name, sender_handle, sender_bio, sender_phone, source_chat, scraped_at **Options**: - Message count limit (default: 5,000) - Include sender info (name, handle) - Include timestamps - Include reply/forward metadata ### Recent Contacts Extracts profile information from your most recently active chat conversations. - Reads your recent dialogs in true recency order - Returns full profile data per contact, not just what the chat list renders **Options**: - Number of recent chats to scan (default: 20) - Ignore pinned chats - Exclude bots **Data collected**: name, username, telegram_user_id, bio, source_chat, scraped_at ### Mutual Groups Discovers shared groups between the user and a target Telegram user, then optionally extracts members from those groups. **Requirements**: none beyond being signed in to Telegram Web. **Two-step process**: 1. **Step 1 (Find Mutual Groups)**: Enter a target user's @handle. The extension looks up all groups you share with that user 2. **Step 2 (Extract Members)**: Select which mutual groups to read, then export all members from the selected groups Both steps run inline on the Extract screen: there is no separate connection flow between them. **Data collected**: Same as Group Members mode, plus the mutual group context ### Media Download Bulk-downloads media files from any chat or channel the user has access to. **Requirements**: none beyond being signed in to Telegram Web and having access to the chat. **Supported media types**: photos, videos, documents, audio files, voice notes, GIFs, and stickers **Options**: - Choose how many messages to scan - The run returns each item with its type and date, so the results can be narrowed to just the media and the period you want - Original filenames preserved - File metadata (timestamp, sender, chat) preserved alongside the binary **Plan limits**: - Available on every plan (Free, Pro, Scale) - Each downloaded media file counts as one message against your monthly message quota (Free 300, Pro 10,000, Scale 500,000) **How it works internally**: enumerates messages carrying media attachments that match the filters, then downloads each matched attachment through the user's existing session. Honors the same rate-limit handling and bounded, resumable run size as the other extractors. --- ## Export System ### Supported Formats - **CSV**: Comma-separated values with quoted fields. Compatible with Excel, Google Sheets, and data analysis tools - **JSON**: Pretty-printed JSON array of objects. One file per export - **JSONL**: Newline-delimited JSON (one JSON object per line). Compatible with streaming data pipelines and tools like jq ### Profile Export Fields | Field | Description | |---|---| | name | Display name of the Telegram user | | handle | Username (@handle) | | telegram_user_id | Numeric Telegram user ID | | role | Role in group (member, admin, creator) | | bio | User's bio/about text | | phone | Phone number (if visible to the user) | | source_group | Name of the group the profile was extracted from | | source_chat | Name of the chat context | | scraped_at | ISO 8601 timestamp of when the data was extracted | | source_mode | Legacy column, retained for backward compatibility with existing pipelines. Always `"web"` since v5.0.0: there is only one engine, so it no longer distinguishes anything | ### Message Export Fields | Field | Description | |---|---| | message_id | Telegram message ID | | timestamp | Message timestamp | | text | Message text content | | sender_id | Numeric sender user ID | | name | Sender display name | | handle | Sender username | | bio | Sender bio | | phone | Sender phone (if visible) | | source_chat | Chat name where message was extracted | | scraped_at | ISO 8601 extraction timestamp | | source_mode | Legacy column, retained for backward compatibility. Always `"web"` since v5.0.0 | --- ## Plans & Pricing ### Free Plan - 250 profiles per month - 300 messages per month - Every extractor unlocked (Group Members, Chat Messages, Recent Contacts, Mutual Groups, Media Download): nothing is gated behind a paid tier - Each downloaded media file counts as one message against the monthly quota - Nothing to set up: no API credentials, no second login - No credit card required - Works in guest mode (no email needed) ### Pro Plan - 5,000 profiles per month - 10,000 messages per month - The same five extractors as Free, at higher volume - Media downloads (photos, videos, documents, audio, voice notes): each file counts as one message against the monthly quota - Best for active operators and researchers - Billed via Stripe ### Scale Plan - 100,000 profiles per month - 500,000 messages per month - The same five extractors as Free, at the highest volume - Media downloads (photos, videos, documents, audio, voice notes): each file counts as one message against the monthly quota - Designed for high-volume extraction and data collection operations - Billed via Stripe ### Billing - Payments processed securely via Stripe - Monthly billing cycle with automatic renewal - Quota resets monthly - Plan can be changed or cancelled from the extension's Settings tab - If you change devices or browsers, use the "Restore" feature with your billing email to re-link your plan --- ## The Extraction Engine: Technical Deep Dive There is one engine and one code path. Earlier versions of the extension shipped two ("Web Mode", which read the rendered DOM, and "Power Mode", which needed the user's own `api_id`/`api_hash` from my.telegram.org). Both are gone as of v5.0.0, along with the setup step, the mode picker, and the credential storage that went with them. ### Setup None. Install the extension, open web.telegram.org, and every extractor works. There is no account to connect, no API application to register, no login code, and no credentials to enter. ### How It Works - `tgLiveClient.js` runs in the Telegram Web page context, where it can reach the Telegram Web client's own data layer - It reads Telegram's structured data over the session the user is **already signed into**, the same session that renders the page - Because it reads structured data rather than rendered text, it returns fields the interface never displays (`@handle`, bio, phone where visible), and it is unaffected by the user's Telegram interface language - It calls read/fetch methods only. It never sends messages, joins groups, adds members, or modifies anything - Nothing is persisted server-side: no session strings, no credentials, no extracted data ### Extraction Passes - **Roster pass:** pages through a group's member list where that list is enumerable - **Author pass:** loads chat history and resolves message senders to full profiles. This is the path used when a group hides its member list from non-admins - Results from both passes are merged and deduplicated by Telegram user ID; rows without a handle are kept and flagged rather than dropped ### Rate Limiting and Run Size - Telegram's rate-limit responses are detected and honored: the run pauses for the duration Telegram asks for, then resumes - Runs are deliberately **bounded and resumable** rather than endless: a run reads a set number of messages, then pauses and asks before continuing, so sustained bulk activity is not generated in one burst - Partial results are saved automatically if a run hits a limit or an error mid-way --- ## Privacy & Security - **Client-side operation**: All data extraction happens in the user's browser. Extracted profiles and messages are stored in the browser's local storage (chrome.storage) and are never sent to Mastros servers for processing - **No data collection**: Mastros does not collect, store, or have access to the Telegram data you extract - **No credentials at all**: there are no Telegram API credentials to create, enter, or store, and no session strings are kept by the extension. Mastros never asks for a Telegram password - **Analytics**: Anonymized usage telemetry (feature usage, error counts) is sent to PostHog for product improvement. No personally identifiable information or extracted Telegram data is included - **Backend API**: The Cloudflare Workers backend (telegram-scraper-api.mastros.workers.dev) handles only: account creation/sync, quota tracking, Stripe billing webhooks, and plan management. It does not process or store Telegram data --- ## Technical Specifications - **Platform**: Google Chrome (Chromium-based browsers) - **Extension Standard**: Manifest V3 - **Current Version**: 5.0.0 - **Supported Telegram Web client**: web.telegram.org/k (Web K). Other paths are redirected to /k - **Extraction engine**: `tgLiveClient.js`, running in the Telegram Web page context over the user's existing session (no third-party MTProto client and no user-supplied credentials) - **Backend**: Cloudflare Workers - **Payments**: Stripe - **Analytics**: PostHog --- ## FAQ **Q: Does this work on Telegram Desktop or mobile?** A: No. It only works on Telegram Web (web.telegram.org) in a Chrome or Chromium-based browser. **Q: Do I need to provide my Telegram password?** A: No. You stay signed in to Telegram Web the normal way and the extension reads that session. There is no separate login, no Telegram API credentials to create, and no password is ever requested. **Q: Can I extract from private groups or channels I'm not a member of?** A: No. The extension can only extract data from chats and groups you already have access to in your own Telegram account. **Q: Is my extracted data sent to any server?** A: No. All extracted data stays in your browser. The only server communication is for account/billing sync and anonymized usage analytics. **Q: Is there anything to set up or connect?** A: No. There is a single extraction engine, no mode to choose, and no connection step. All five extractors work the moment the extension is installed. **Q: What happens if I hit a rate limit?** A: The extension detects Telegram's rate-limit responses and pauses for the duration Telegram asks for before resuming. Runs are also deliberately bounded and resumable rather than endless. **Q: Can I use this with multiple Telegram accounts?** A: It works on whichever Telegram account is signed in to Telegram Web in that browser profile. To use a different account, sign in to Telegram Web as that account. **Q: Can I download media (photos, videos, files) from a chat?** A: Yes. The Media Download mode bulk-downloads photos, videos, documents, audio files, and voice notes from any chat or channel you can access, Choose how many messages to scan; the run returns each item with its type and date, so the results can be narrowed to just the media and the period you want. Original filenames and metadata are preserved and media is delivered as a ZIP. Each downloaded media file counts as one message against your monthly message quota. --- ## Contact & Links - **Website**: https://www.mastros.online/ - **Telegram Scraper page**: https://www.mastros.online/telegram-scraper - **WhatsApp Scraper page**: https://www.mastros.online/whatsapp-scraper - **LinkedIn Scraper page**: https://www.mastros.online/linkedin-scraper - **Telegram Video Downloader page**: https://www.mastros.online/telegram-video-downloader - **WhatsApp Chat Backup page**: https://www.mastros.online/whatsapp-chat-backup - **WhatsApp Media Downloader page**: https://www.mastros.online/whatsapp-media-downloader - **Instagram Scraper page**: https://www.mastros.online/instagram-scraper - **Instagram Email Finder page**: https://www.mastros.online/instagram-email-finder - **TikTok Scraper page**: https://www.mastros.online/tiktok-scraper - **TikTok Email Finder page**: https://www.mastros.online/tiktok-email-finder - **YouTube Transcript Generator page (coming soon)**: https://www.mastros.online/youtube-transcript-generator - **AI Chat Exporter page (coming soon)**: https://www.mastros.online/ai-chat-exporter - **About page**: https://www.mastros.online/about - **Blog**: https://www.mastros.online/blog - **Support page**: https://www.mastros.online/support - **Privacy Policy**: https://www.mastros.online/privacy - **Terms of Service**: https://www.mastros.online/terms - **Support Email**: admin@mastros.online