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.