{"id":49804674,"url":"https://github.com/openclaw/telecrawl","last_synced_at":"2026-05-14T19:01:23.281Z","repository":{"id":356570188,"uuid":"1233013610","full_name":"openclaw/telecrawl","owner":"openclaw","description":"Telegram for Claws","archived":false,"fork":false,"pushed_at":"2026-05-09T05:15:19.000Z","size":56,"stargazers_count":27,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-12T17:41:18.302Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openclaw.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["moltbot"]}},"created_at":"2026-05-08T13:55:14.000Z","updated_at":"2026-05-12T14:22:05.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/openclaw/telecrawl","commit_stats":null,"previous_names":["openclaw/telecrawl"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/openclaw/telecrawl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openclaw%2Ftelecrawl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openclaw%2Ftelecrawl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openclaw%2Ftelecrawl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openclaw%2Ftelecrawl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openclaw","download_url":"https://codeload.github.com/openclaw/telecrawl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openclaw%2Ftelecrawl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33039250,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-05-12T17:01:20.044Z","updated_at":"2026-05-14T19:01:23.254Z","avatar_url":"https://github.com/openclaw.png","language":"Go","funding_links":["https://github.com/sponsors/moltbot"],"categories":[],"sub_categories":[],"readme":"# telecrawl\n\nTelegram Desktop archive CLI.\n\n`telecrawl` reads your local Telegram Desktop `tdata` through `opentele2` and\nTelethon, stores a searchable SQLite archive in `~/.telecrawl/telecrawl.db`, and\ncan back it up to GitHub as encrypted age shards.\n\nIt is local-first:\n\n- Normal archive/search commands do not upload data.\n- `backup push` uploads only age-encrypted shards when you run it explicitly.\n- Telegram message text, chat names, sender names, and media metadata stay inside\n  encrypted backup payloads.\n\n## Install\n\n```bash\nbrew tap steipete/tap\nbrew install telecrawl\n```\n\nOr install with Go:\n\n```bash\ngo install github.com/openclaw/telecrawl/cmd/telecrawl@latest\n```\n\n## Setup\n\nInstall the Python bridge used for Telegram Desktop `tdata` imports:\n\n```bash\ntelecrawl deps install\n```\n\nThis creates `~/.telecrawl/venv` and installs `opentele2` plus Telethon.\n\n## Import\n\n```bash\ntelecrawl doctor\ntelecrawl import\ntelecrawl status\n```\n\nImport defaults to:\n\n- latest `200` dialogs\n- latest `500` messages per dialog\n\nUse `0` for no limit:\n\n```bash\ntelecrawl import --dialogs-limit 0 --messages-limit 0\n```\n\nUseful reads:\n\n```bash\ntelecrawl folders\ntelecrawl chats --limit 20\ntelecrawl chats --folder FOLDER_ID\ntelecrawl chats --unread\ntelecrawl topics --chat CHAT_ID\ntelecrawl messages --limit 20\ntelecrawl messages --chat CHAT_ID --after 2026-01-01\ntelecrawl messages --chat CHAT_ID --topic TOPIC_ID\ntelecrawl messages --chat CHAT_ID --pinned\ntelecrawl search \"query\"\ntelecrawl search \"query\" --chat CHAT_ID --topic TOPIC_ID\n```\n\nTelegram folders, forum topics, reply/thread IDs, pinned messages, edits,\nforwards, reactions, view/reply counts, and richer media titles are archived\nwhen Telethon exposes them for the active account. Folder rows include explicit\nmembership from Telegram dialog filters; dynamic folder rules are recorded as\nmetadata and may not expand to every matching chat.\n\nAdd `--json` before the command for machine-readable output:\n\n```bash\ntelecrawl --json status\ntelecrawl --json search \"invoice\"\n```\n\n## Data Paths\n\nDefaults:\n\n- Telegram Desktop source: `~/Library/Application Support/Telegram Desktop/tdata`\n- archive DB: `~/.telecrawl/telecrawl.db`\n- Python bridge venv: `~/.telecrawl/venv`\n- Telethon sessions: `~/.telecrawl/sessions/`\n- backup config: `~/.telecrawl/backup.json`\n- age identity: `~/.telecrawl/age.key`\n- backup checkout: `~/Projects/backup-telecrawl`\n\nOverride the archive DB:\n\n```bash\ntelecrawl --db /tmp/telecrawl.db status\n```\n\nOverride the Telegram Desktop source:\n\n```bash\ntelecrawl --source \"/path/to/tdata\" doctor\ntelecrawl --source \"/path/to/tdata\" import\n```\n\n## Backup\n\nCreate `https://github.com/steipete/backup-telecrawl` first, then initialize:\n\n```bash\ntelecrawl backup init\ntelecrawl backup push\n```\n\nThe default backup config points at:\n\n```json\n{\n  \"repo\": \"~/Projects/backup-telecrawl\",\n  \"remote\": \"https://github.com/steipete/backup-telecrawl.git\",\n  \"identity\": \"~/.telecrawl/age.key\"\n}\n```\n\nUse a different repository or config path:\n\n```bash\ntelecrawl backup init \\\n  --config ~/.telecrawl/backup.json \\\n  --repo ~/Projects/backup-telecrawl \\\n  --remote https://github.com/steipete/backup-telecrawl.git\n```\n\nInspect backup metadata:\n\n```bash\ntelecrawl backup status\n```\n\nRestore into the current archive DB:\n\n```bash\ntelecrawl backup pull\ntelecrawl status\n```\n\nRestore into a throwaway DB for validation:\n\n```bash\ntelecrawl --db /tmp/telecrawl-restore-test.db backup pull\ntelecrawl --db /tmp/telecrawl-restore-test.db status\n```\n\n## Backup Security Model\n\nBackup shards are JSONL, gzip-compressed with deterministic gzip metadata, and\nencrypted with age before Git sees them.\n\nGit can still see cleartext metadata:\n\n- export time\n- public age recipients\n- table names\n- row counts\n- shard paths\n- encrypted byte sizes\n- plaintext shard hashes\n- backup cadence and which encrypted shards changed\n\nGit cannot read message text, chat names, sender names, or media metadata without\nan age identity.\n\nKeep `~/.telecrawl/age.key` private. If you lose it and no other recipient can\ndecrypt the backup, the encrypted backup cannot be restored.\n\n## Multi-Machine Backups\n\nOn another machine:\n\n```bash\ntelecrawl backup init --no-push\ncat ~/.telecrawl/backup.json\n```\n\nCopy that machine's public `recipient` into the first machine's\n`~/.telecrawl/backup.json`, then re-encrypt current shards:\n\n```bash\ntelecrawl backup push\n```\n\nThe private `AGE-SECRET-KEY-...` identity must not be committed or shared.\n\n## Reset\n\nRemove local state:\n\n```bash\nrm -rf ~/.telecrawl\n```\n\nRemove only the archive:\n\n```bash\nrm -f ~/.telecrawl/telecrawl.db ~/.telecrawl/telecrawl.db-*\n```\n\nDo not delete `~/.telecrawl/age.key` unless you have another working backup\nrecipient or you no longer need to restore existing encrypted backups.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenclaw%2Ftelecrawl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenclaw%2Ftelecrawl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenclaw%2Ftelecrawl/lists"}