Repository navigation
Releases
v0.4.2 — A steadier line to Telegram.
indexit moves to a newer Telegram library: telegram auth login --qr signs in where it used to stall, and long exports and the photograph service keep their connection to Telegram.
QR login that finishes
indexit telegram auth login --qr- An account that Telegram keeps in another data center now finishes signing in after you scan the code, instead of stopping after the scan.
- The code on the screen is replaced reliably when it expires before you scan it.
A connection that stays up
- The connection to Telegram sends regular pings, so a long export or the photograph service, waiting between requests, keeps it open.
- When Telegram asks indexit to set up the connection again, it does so and goes on, instead of failing the request.
- A connection error that cannot pass by itself ends the command with that error, instead of retries that never succeed.
Telegram compatibility
Updated Telegram protocol support to API layer 233.
Upgrade: on macOS, run brew update followed by brew upgrade --formula octolab/tap/indexit, then brew services restart octolab/tap/indexit if you run the photograph service. For a manual installation, use a v0.4.2 release archive. Run indexit version to check the installed version. If you use the agent skill, replace it with the new binary’s copy.
v0.4.1 — Every dialog, its own date.
telegram fetch dialogs now dates each conversation by its own last message, so the list is complete: no dialog is skipped between pages, and every last_message_at belongs to its own record.
A complete dialog list
indexit -q telegram fetch dialogs | jq -r '[.last_message_at, .uid] | @tsv'- Telegram numbers the messages of every channel from 1, so two channels on one page can have last messages with the same number, such as channels with nothing but their creation. indexit could take the date of one for the other.
- A wrong date could also send the next page to the wrong point in your list and skip the dialogs in between. Each dialog is now matched with the last message of its own chat.
Explore the fx and fzf workflows →
Clearer flags
- An invalid flag value names what is expected, such as
must be an integer, instead of a parse error. --helpshows that on/off flags also take an explicit value:--quiet[=true|false].
Telegram compatibility
Updated Telegram protocol support to API layer 232.
Security
- indexit builds with fixed versions of the compression libraries its Telegram connection uses: a crafted compressed response could crash it or make it allocate excessive memory.
Upgrade: on macOS, run brew update followed by brew upgrade --formula octolab/tap/indexit. For a manual installation, use a v0.4.1 release archive. Run indexit version to check the installed version. If you use the agent skill, replace it with the new binary’s copy.
v0.4.0 — The whole post, nothing left behind.
fetch message with a link to any photo or video of an album now gives the whole post: every message of the album, in order, with the author's text. Photograph URLs name only the channel, the post and the photograph, not your account: a fetch keeps nothing on disk, the service saves a photograph the first time it is opened, and another computer can show the saved pictures by the same URLs.
The whole album from one link
- A link to any message of an album gives every message of it, in message order, each with its own text and media. The output is the same whichever photo the link points to, and the author's text is there even when it sits on another photo.
- Each message is emitted once per run, also when several links point into the same album, such as
t.me/<channel>/…andt.me/c/…links to one post. - A member missing between two others, such as a deleted one, is named in a warning, and the others are still emitted.
media.albumis gone: every message carries its ownpreview_url.
Photograph URLs that name only the post
- URLs are
http://indexit.localhost:17840/preview/telegram/v1/c<channel>/<message>/p<photo>.jpg: nothing in them identifies your Telegram account. - A fetch writes nothing for the photographs it describes. The dashboard counts the photographs on disk; "what needs a look" no longer lists photographs nobody opened, and
/api/v1/unsavedis gone. - On the first request the service finds the channel by itself: a channel it found before, the CLI's peer cache, your dialogs with the archive, the channel's username. A channel your account cannot see answers
404; fetch the post on this Mac and open it again. - A post or a photograph gone from Telegram, or replaced by the author, answers
410, never another picture. A saved photograph never reaches Telegram again; a saved file that cannot be read answers503and is never downloaded over. - Photographs of channel and supergroup posts get URLs, private ones included. Private chats and basic groups have no message link and get none;
fetch mediastill downloads them.
Share the photographs between computers
imagesunder[service]inconfig.tomlputs the saved photographs in a folder of their own, such as one in Google Drive. Another computer that runs the service with the same folder shows them by the same URLs, without asking Telegram.- A service writes a photograph next to its place under a name of its own, checks that the JPEG is complete, and never replaces one another computer saved. Conflict copies of the cloud folder are ignored.
Before you upgrade
- URLs written by earlier versions no longer open: they named your account. Fetch those posts again and replace the URLs in your notes. The photographs you saved stay on disk; to keep them, stop the service and move
~/.local/share/indexit/images/a<account>/c…to~/.local/share/indexit/images/c…. Thesources/directory is no longer used; remove it. - After the upgrade, run
brew services restart octolab/tap/indexit.
Upgrade: on macOS, run brew update followed by brew upgrade --formula octolab/tap/indexit. For a manual installation, use a v0.4.0 release archive. Run indexit version to check the installed version. If you use the agent skill, replace it with the new binary’s copy.
v0.3.1 — Your photos at a glance.
Open http://indexit.localhost:17840/ in a browser: the image service now shows what it keeps on your Mac, what it served and what still needs a look. When it starts without a config file, it writes one with every setting in it, ready to edit.
A dashboard of your photographs
- How many photographs this Mac keeps, from how many dialogs, their size and the free space left on the disk.
- How many requests the service answered from disk, and how many requests each download served on average.
- The days photographs were saved over the last 26 weeks, the dialogs they come from and the ten latest, with links to each photograph and its Telegram post.
- What needs a look: photographs a fetch registered but nobody opened yet, which are lost with the post, with one command that saves them all; photographs Telegram says no longer exist; failed requests.
- The page updates by itself while it is open, works in dark and light mode and on a phone-sized window, and loads nothing from the internet.
/api/v1/statsgives the same numbers as JSON, and/api/v1/unsavedlists the photographs without a local copy.- After the upgrade,
brew services restart octolab/tap/indexitstarts the service with the dashboard. - The page answers only on this Mac and not through a proxy. With an origin outside this Mac, it stays off unless you turn it on;
dashboard = falseunder[service]turns it off anywhere.
A config file to start from
indexit service runwrites~/.config/indexit/config.tomlwhen there is none:originanddashboardunder[service], commented out with their defaults. Uncomment a line to change it.- An existing file is never touched, and a service that can't write one still starts.
Upgrade: on macOS, run brew update followed by brew upgrade --formula octolab/tap/indexit. For a manual installation, use a v0.3.1 release archive. Run indexit version to check the installed version. If you use the agent skill, replace it with the new binary’s copy.
v0.3.0 — Photos that stay.
Exported photo messages now carry permanent local URLs. indexit's own image service on your Mac saves each photograph the first time it is opened and keeps showing it in your notes, even after the post, the channel or your Telegram session is gone. The CLI and the service install together as one Homebrew Formula.
Photographs in your notes
fetch messagesandfetch messageaddmedia.preview_urlto ordinary photo messages, pointing tohttp://indexit.localhost:17840/. Put it in a Markdown note as an image source.- An album lists every photograph in
media.album.photos, even when you select one item in the middle;completeanderrortell you whether the album is whole. - The first request downloads the largest version of the photograph and saves it in
~/.local/share/indexit. From then on it shows without Telegram or the network. - Writing a URL needs no running service and downloads nothing. When a photograph can't be stored,
media.preview_errorsays why and the caption stays.
A service with no setup
brew services start octolab/tap/indexitruns the service as your user. It listens only on this Mac, at127.0.0.1:17840and[::1]:17840..localhostnames always mean this Mac: no hosts entry, no sudo, no network settings.indexit service runstarts it by hand, on Linux too; a repeated--listenreplaces the default addresses with your own loopback ones.originunder[service]in~/.config/indexit/config.tomlsets another origin for new URLs. An unknown key or a malformed origin stops the command with an error naming the file and the key.
Notes from your agent
- Ask your coding agent to save a post as a note: the agent skill embeds the post's photographs from the image service and opens each one once, so the copy is kept.
One Formula
- indexit is now the Homebrew Formula
octolab/tap/indexit: the CLI and the service in one package that updates together. The Cask is no longer updated.
Known limitations
- Videos, GIFs, documents, web previews, paid and expiring media get no URL.
- URLs work on this Mac only, not from a phone or another machine.
- On Linux, the service doesn't install itself; run
indexit service run.
Upgrade: on macOS, run brew update, then switch from the Cask once: brew uninstall --cask octolab/tap/indexit and brew install --formula octolab/tap/indexit. Don't add --zap: keep your Telegram configuration and saved photographs. Later upgrades are brew upgrade --formula octolab/tap/indexit. For a manual installation, use a v0.3.0 release archive. Run indexit version to check the installed version. If you use the agent skill, replace it with the new binary’s copy.
v0.2.3 — Every copy in sight.
indexit skill status now sees the skill when Codex installed it as a plugin, so you can check every copy your agents load, whichever way you installed them. indexit telegram auth status reports a configured proxy once instead of twice.
Check Codex plugins
indexit skill status --agent claude-code,codex --exact- Enabled Codex plugins named
indexit, from any marketplace, are read from Codex’sconfig.toml, inCODEX_HOMEwhen set. - The copy checked is the one Codex itself loads: a
localcopy if there is one, otherwise the highest version. --exactpasses when the plugin copy matches this release, and a Codex plugin now counts as a copy for the warning about several copies for one agent.- If the plugin cache mixes version numbers with other names, which copy Codex loads depends on the order on disk: status names the directories, asks you to remove the stale ones, and
--exactfails until you do.
One proxy line
indexit telegram auth statuslogs the configured proxy once, whether or not a session exists.
Upgrade: on macOS, run brew update followed by brew upgrade --cask octolab/tap/indexit. For a manual installation, use a v0.2.3 release archive. Run indexit version to check the installed version. If you use the agent skill, replace it with the new binary’s copy.
v0.2.2 — Cards for people, too.
telegram fetch peer now describes users and bots in full, not only channels and groups: the bio, the personal channel, the birthday, a business account's address and hours, and a bot's description and commands. The local peer cache now belongs to one account, so after you switch accounts indexit never sends another account's addresses.
Describe people and bots
indexit -q telegram fetch peer @example_person @example_bot \
| jq '{uid, peer_type, title, about, personal_channel, bot, error}'- A user or a bot is a full card, not an error. The
not_channelerror is gone: to keep only channels and groups, filter bypeer_type. aboutis the bio.personal_channelnames the channel shown on the profile, with itsuid,title, andusername, shaped likelinked_chat.- Names, the phone number, the birthday (with or without the year), the business location, hours, and intro, the Stars rating, and the price of a paid message appear when Telegram returns them. What privacy settings hide is absent, without an error.
- A bot card has
botwith the description, commands, privacy policy link, and what the bot may do in groups. A cacheduser:<id>reportsbotfor a bot too. - If the full request fails, the card keeps the identity indexit already knows, with
error.code: "rpc". - A numeric
user:<id>known only from a passing mention, such as a message in a large group, reportscold_peerbut keeps itsuid,title, andusername.
Keep each account's peer cache to itself
- The peer cache records the account it belongs to. A cache written for another account, or by an earlier version, starts empty with a warning that says to run
fetch dialogs;-qhides the warning, not the reset. - Signing in again as the same account keeps the cache. While the session is unchanged, the check costs no request.
- If indexit cannot tell the account, the command runs without the cache and leaves the file as it was.
auth statusshows the peer cache and the account it belongs to.
Upgrade: on macOS, run brew update followed by brew upgrade --cask octolab/tap/indexit. For a manual installation, use a v0.2.2 release archive. Run indexit version to check the installed version. The first fetch after the upgrade starts the old peer cache empty: run indexit telegram fetch dialogs once to refill it. If you use the agent skill, replace it with the new binary’s copy.
v0.2.1 — Know your role.
telegram fetch dialogs now includes your account's membership, admin, and owner status. Find channels and groups you belong to but do not administer using the dialog list alone, without an extra request for each chat. telegram fetch peer includes the same status in channel and group cards.
Find your ordinary memberships
indexit -q telegram fetch dialogs \
| jq -c 'select(.peer_type | IN("channel", "supergroup", "chat")) | select(.is_member == true and .is_admin == false)'is_membertells you whether your signed-in account currently belongs to the chat. Groups that have been replaced by a supergroup are not counted as current memberships.is_adminincludes both administrators and owners.is_creatoridentifies ownership separately.- The fields work for channels, supergroups, and basic groups. Remove
"chat"from the filter if you only want channels and supergroups. - These are your account's rights; names and member counts are not used to infer who owns a chat.
Keep unknown status distinct
- Known values are explicit
trueorfalse. When Telegram supplies too little information, the status fields are absent. Keep those records for separate review instead of treating them as non-admin memberships. - Channel direct-message inboxes also leave this status absent; they are not ordinary group memberships.
- Telegram may retain ownership flags on a channel you left or a group that was replaced by a supergroup. Use
is_member == truetogether withis_creator == trueto find owned chats you currently belong to.
Upgrade: on macOS, run brew update followed by brew upgrade --cask octolab/tap/indexit. For a manual installation, use a v0.2.1 release archive. Run indexit version to check the installed version. If you use the agent skill, replace it with the new binary’s copy.
v0.2.0 — Put channels in context.
telegram fetch peer tells you what a channel or group is about before you export its messages. Get its description, audience, and linked discussion group as JSONL, ready for a channel note or a closer look in fx. The new indexit skill commands give your coding agent instructions that travel with the binary.
Turn channels into useful notes
indexit -q telegram fetch peer @example_channel @example_discussion \
| jq '{uid, title, about, participants_count, linked_chat_uid, linked_chat, error}'- Keep a channel’s description and member count alongside its identity and usernames.
- Pair it with the group that hosts its comments using
linked_chat_uid, without guessing from titles. The group’s card points back to the channel. - Get one card per reference, in input order. A failed reference carries an
errorso you can check partial results; users and bots return their identity withnot_channel.
Describe channels and groups →
Look at an invitation without joining
indexit -q telegram fetch peer 'https://t.me/+<hash>' | fx- Replace
<hash>with your invite’s hash. indexit inspects the invitation without joining the chat. - Get a full card for a chat you belong to or may temporarily peek into. Otherwise, get Telegram’s preview with
invite_not_memberand no chat ID. - See an expired or revoked invitation as
invite_expired, alongside any other results in the same run.
Give your coding agent the matching skill
indexit skill install --agent claude-code,codex
indexit skill status --agent claude-code,codex --exact- Install the bundled instructions offline for Claude Code or Codex, then start a new agent session. The skill helps the agent choose commands, handle Telegram links, and check incomplete exports; sign-in stays with you.
- After upgrading indexit, run
indexit skill install --agent claude-code,codex --replace. It replaces only a copy installed by indexit that has not been edited. - Use
skill statusto find incompatible or edited copies and--exactto detect content that differs from the bundled skill. Useskill show,skill info, orskill export -o ./indexit-skillto read, inspect, or copy it for another agent. - Prefer a plugin manager? Stable releases also publish the skill to the OctoLab catalog.
Use more Telegram addresses
- Paste
https://t.me/s/example_channelpreview links wherever a username is accepted. - Resolve four-letter usernames as well as longer ones.
Upgrade: on macOS, run brew update followed by brew upgrade --cask octolab/tap/indexit. For a manual installation, use a v0.2.0 release archive. Run indexit version to check the installed version.
v0.1.2 — One message, one entry.
telegram fetch messages and telegram fetch media now process each message ID at most once per run, including when fetching a forum topic. Repeated IDs within a page or across overlapping pages no longer produce duplicate records.
Keep limits and downloads accurate
--limitcounts unique results; repeated message IDs do not use up the limit.- Media exports avoid repeated downloads and manifest records, including with
--overwrite. - Different messages with identical text or media remain separate. Album frames with different message IDs are preserved.
Explore messages → · Save topics and media →
Stop when history cannot advance
If Telegram returns a nonempty history page without older message IDs to continue from, the command exits with an error instead of looping or reporting the export as complete. This applies to both message and media exports.
Upgrade: on macOS, run brew update followed by brew upgrade --cask octolab/tap/indexit. For a manual installation, use a v0.1.2 release archive. Run indexit version to check the installed version.