People in your Telegram chats
Find people and contacts in Telegram, inspect saved conversation evidence, and manage private aliases and notes on your computer.
Identify a person and recover what you have discussed before replying. This guide explains the available context, account signals and the limits of incomplete history.
Recover your conversation context →
Use this page when you want to know more about one person: who they are, what they wrote to you or in your groups, and whether their account looks like a bot or a spammer. You will learn how to read a person's profile, collect their messages for a summary, check an account before you trust it, and keep your own names and notes about people.
Some words on this page:
- The local store is the copy of your messages that
tgkeeps on this computer. Counts and messages on this page come from it, so they show only what was downloaded. - A profile here is what Telegram says about a person: name, username, bio, photo and flags.
It is not a
tglogin profile. - A person is named by their id, their
@username, or part of their name. When part of a name matches more than one person, the command stops and lists them; run it again with the id or the username.
What you can do
| Task | Command |
|---|---|
| See who a person is and where you talk to them | tg personal contacts show |
| Read what they said, in every chat or in the chats you name | tg personal contacts context |
| Get ready to talk to them: chats, open tasks, facts, notes and meetings | tg personal contacts prepare |
| Check whether the account looks like a bot, a fake or a spammer | tg personal contacts check |
| Check the most suspicious members of a group | tg personal chats members check --deep |
| Record that a Telegram account and a MAX account are the same person | tg personal contacts link |
| Keep your own name and notes for a person | tg personal contacts aliases, tg personal contacts notes |
Every option of these commands is in the command reference for contacts.
Who they are: contacts show
tg personal contacts show @example_user
tg personal contacts show @example_user --jsonIt answers everything Telegram says about the person, your own alias and notes (--with-notes), and how many of
their messages your local store holds in each chat you share. --offline answers from the store alone:
{
"id": "1000001",
"name": "Example User",
"usernames": ["example_user"],
"description": "Coffee and maps",
"phone": "+34600000123",
"flags": { "bot": false, "verified": false, "premium": true, "scam": false, "fake": false,
"restricted": false, "deleted": false, "support": false },
"seen": "recently",
"contact": true,
"mutual_contact": true,
"common_chats_count": 2,
"registered": { "at": "2019-04-01T00:00:00.000Z", "source": "estimate", "precision": "month" },
"has_photo": true,
"chats": [
{ "id": "1000001", "title": "Example User", "kind": "dialog", "their_messages": 412,
"first_at": "2023-02-11T09:14:00.000Z", "last_at": "2026-10-05T18:02:00.000Z", "complete": true },
{ "id": "-1002000002", "title": "Book club", "kind": "group", "their_messages": 37,
"first_at": "2025-06-01T10:00:00.000Z", "last_at": "2026-09-30T20:41:00.000Z", "complete": false }
],
"aliases": [
{ "name": "Example U.", "username": "example_old", "link": "https://t.me/example_old",
"first_seen_at": "2024-03-02T08:00:00.000Z", "last_seen_at": "2024-03-02T08:00:00.000Z", "source": "profile" }
]
}phoneis the whole number, when Telegram shows you theirs. It is your data, so it is not masked, in the terminal or over MCP;--hide-phoneleaves it out.flagsare Telegram's own marks.scamandfakemean Telegram itself labelled the account.seenisonline,recently,week,month,hidden, or an exact time when their privacy settings show it to you.registeredalways says where the date came from:telegram— the month Telegram sends when someone writes to you for the first time;estimate— a guess from the account id, using a table that ends at August 2026. Newer ids get no estimate at all rather than a date that may be years off.
has_photocounts their own photo and their public one, never a photo you set for them.chatslists every chat you share, and any other chat where the store holds their messages.aliasesare earlier names and usernames your store saw them with, oldest first, each with at.melink for an old username.source: profile— their profile changed while the store watched;source: messages— the name on their stored messages, approximate, since a message fetched again carries the newest name. It is empty until the store has seen a change.
Counts are what your store holds
their_messages, first_at and last_at come from your local store, never from Telegram. When
complete is false, the store does not hold that chat from its start, so the count is a minimum
and first_at may be later than their real first message. Fetch the chat to fill it:
tg personal messages sync "Book club"The profile costs no extra requests: it uses the same three calls as contacts show. The person
is not told that you looked.
What they said: contacts context
Without --chat, it gives an overview from the store: the chats you share, the last message each way,
their recent messages in your direct chat and in groups, and where others mentioned them. Linked
email identities also contribute sent and received mail. It never connects.
tg personal contacts context @example_userWith --chat, it gives their newest messages in each chat you name, oldest first, 20 per chat:
tg personal contacts context @example_user --chat "Book club" --chat "Team" --limit 10
tg personal contacts context @example_user --chat "Book club" --sync-first{
"person": { "uid": "p_7", "provider": "telegram", "id": "1000001", "name": "Example User" },
"chats": [
{
"chat": { "id": "-1002000002", "title": "Book club", "kind": "group" },
"messages": [
{ "at": "2026-09-29T19:02:00.000Z", "text": "Next one is the short story collection" },
{ "at": "2026-09-30T20:41:00.000Z", "text": "I can host on Thursday" }
],
"complete": false,
"more": true
}
],
"limits": { "messages": 10 }
}- Each message is only its time and text, so an agent can read many of them at once.
-vadds the message id, a link to it, the sender and what it replies to;-vvgives the whole message. --sync-firstasks Telegram first: one search per chat for that person's messages. Without it, the answer comes from the store and never connects.more: truemeans there are older messages than the limit;complete: falsemeans the store does not hold the chat from its start.- A voice message carries
transcriptonce it has been turned into text.
Before you talk to them: contacts prepare
Use it before a call, a meeting or a reply, when you want everything relevant about one person in one answer.
It gives what contacts context gives, plus the one-to-one chats where their message is the newest one stored,
the open tasks assigned to them, accepted facts about them and their projects, your notes about them, and their
recent meetings. Each item carries its reference, so you can open it. It reads only the store and never connects.
tg personal contacts prepare @example_user
tg personal contacts prepare @example_user --limit 5 --since-time 30d--limitcaps the messages and the items in each section (10 by default);--since-timeleaves out older messages and meetings.- Everything fits one size budget.
prepare.coveragesays what each section left out and why. - Tasks of another Telegram account, and facts on a project bound to one, stay out.
- With
contacts.notes.list: denythe notes are left out, and the answer says so. Withmessages: denythe command is refused, ascontacts contextis.
Check account signals and their limits: contacts check
tg personal contacts check @example_user
tg personal contacts check @example_user --no-registries{
"person": { "id": "1000001", "name": "Example User", "username": "example_user", "provider": "telegram" },
"score": 3,
"reasons": [
{ "reason": "no_bio", "weight": 1, "source": "messenger" },
{ "reason": "link_first", "weight": 2, "source": "store" }
],
"registries": [
{ "name": "cas", "answer": "clean", "checked_at": "2026-10-07T08:00:00.000Z" },
{ "name": "lols", "answer": "clean", "checked_at": "2026-10-07T08:00:00.000Z" }
],
"unknown": ["new_account"],
"checked_at": "2026-10-07T08:00:00.000Z"
}The score adds up the weights of every reason found. It is a hint, never a verdict: plenty of real people have no photo, no username or no bio, which is why those weigh little.
unknown lists the signals there was nothing to judge by, so a low score with a long unknown
list means little.
What leaves your computer
contacts check asks two public spam lists, Combot Anti-Spam (CAS) and
lols.bot, whether they list the person. Their Telegram id is sent to both.
--no-registries skips them; Telegram is still asked for the profile and photos unless you add
--offline. A list that does not answer shows unknown, and the rest of the check still runs.
A key for CAS is optional for now. When you have one from Combot, keep it in your system keyring as
the account registries:cas of the tg-cli service, or in TG_CAS_API_KEY. tg sends it only in a
request header, never in the address, and never prints it.
The members of a group: chats members check --deep
tg personal chats members check "Book club"
tg personal chats members check "Book club" --deep 10chats members check scores every member from the member list and the store, without one request per
person, and lists those with a reason, highest first. --deep 10 then runs the full contacts check
on the ten highest, one person a second, spam lists included. It removes nobody. The owner and the
admins are left out.
One person in two messengers: contacts link
Telegram and MAX share one local store on this computer. When you know that a Telegram account and a MAX account are the same person, record it:
tg personal contacts link @example_user max:"Example User"
tg personal contacts unlink @example_userAfter that, contacts context without --chat gathers both accounts: the chats you share and the
messages from the Telegram account and from the MAX account. contacts show and
contacts context --chat still show only the account you named. The link is only ever what you
record: the same name in both messengers is never taken as the same person.
Your own names and notes: contacts aliases, contacts notes
tg personal contacts aliases set "Bob Synthetic" Bobby # your own name for a person, on this computer only
tg personal contacts aliases remove "Bob Synthetic"
tg personal contacts notes add "Bob Synthetic" --text-file note.txt # or the text from stdin
tg personal contacts notes list "Bob Synthetic"
tg personal contacts notes edit "Bob Synthetic" <id> --revision 1 --text-file note.txt
tg personal contacts notes remove "Bob Synthetic" <id>
tg personal contacts show "Bob Synthetic" --with-notesAliases and notes stay in the local store and never reach Telegram. An alias applies only in the
account you use now; a note about a person shows in every tg login profile on this computer that
sees them. contacts rename changes
the name in your Telegram contacts — a different thing. A command finds a person by your alias unless it
matches someone else's name; then it needs the id. --revision stops an edit of a note that changed since
you read it. Refreshing contacts keeps your aliases and notes, and linking two people does not combine
them.
Next step
To see what a whole group is doing, and who waits for an answer there, read groups you run. An AI agent can run all the commands on this page for you; to connect one, see connect an agent over MCP.