Telegram chat_id lookup

This Telegram chat ID finder turns a public channel or group @username or t.me link into the numeric chat_id the Bot API needs. Paste the link, and the lookup asks Telegram’s getChat for you, so no token of yours is needed. For private chats and people, the pages linked below show how to read the ID from an update.

What this finds
  • A public channel or group by @username or t.me link — looked up for you, no token needed.
  • A numeric ID or a t.me/c/… message link — decoded in your browser, nothing is sent.
  • A private group, a person or yourself — not possible by name. How to read those IDs.

What the -100 means

The Bot API keeps users, groups and channels apart by range. A channel's or supergroup's ID is its MTProto ID plus 10¹², made negative.

-100kind1234567890MTProto channel ID
bot_api_id = −(10¹² + 1234567890) · example
# the same call, with your own bot
curl https://api.telegram.org/bot$TOKEN/getChat \
  -d chat_id=-1001234567890

ID ranges

Positive = user or bot. Negative = chat; the range tells the kind.

Scale is compressed (log of the magnitude) so all ranges fit. Hatched = reserved for secret chats, which bots never see. Look up an ID above and it is pinned here. Ranges from Telegram's Bot API dialog IDs page.
User or bot

1 … 1,099,511,627,775

Basic group

−1 … −999,999,999,999

Channel / supergroup

−1,000,000,000,001 … −1,997,852,516,352

Secret chat

−1,997,852,516,353 … −2,002,147,483,648

Channel direct messages

−2,002,147,483,649 … −4,000,000,000,000

Private groups and users

Nobody can look these up by name — Telegram only tells a bot the ID of a chat the bot is in, or of a person who wrote to it.

1
Write to your own bot, or add it to the group

Any bot you created with @BotFather works. Send it a message — in the group, mention it or send a command.

2
Open getUpdates

Call getUpdates for your bot yourself, from your own terminal. The token stays with you and is never typed into this site.

3
Read chat.id and from.id

Paste the answer into the inspector and every ID in it is listed. It is read in your browser only.

Convert between formats

Type in any field; the others fill in. Works offline in your browser.

Channel / supergroup. −(10¹² + MTProto channel ID). This is the −100 prefix.

The format in detail · Message link parser

Every ID range

From Telegram's own “Bot API dialog IDs” page.

KindFromTo
User11099511627775
Group-999999999999-1
Channel-1997852516352-1000000000001
Secret chat-2002147483648-1997852516353
Monoforum-4000000000000-2002147483649

How to get a Telegram chat ID

Every Telegram chat has a fixed number. Usernames can change and links can be revoked, but the number stays. That is why bots, alerting tools and automation services ask for the chat_id rather than the name: it is the one value that keeps pointing at the same chat.

Public channels and groups

A public channel or group has an @username, which makes it visible to the Bot API by name. Paste @name, t.me/name or a full message link into the lookup above. If the chat is listed in this directory, its stored ID is shown straight away; otherwise the site calls getChat with that username and shows the chat_id, the kind of chat and its title. The bot does not have to be a member of a public chat for this.

Private chats, private groups and people

A private group, a private channel or a person has no public name the Bot API can resolve. Telegram gives a bot their ID only when the bot receives something from them. So the way is always the same: add a bot to the chat or write to it, let it receive one message, and read message.chat.id from getUpdates. The pages for your own user ID, getUpdates and forwarded messages walk through it.

What the number looks like

  • Positive, up to 1,099,511,627,775: a user or a bot. The same number everywhere.
  • Negative, without -100: a basic group, an older kind of small group.
  • Negative, starting with -100: a channel or a supergroup. The Bot API writes it as minus (1,000,000,000,000 plus the channel’s own ID), so the own ID appears after -100. Channel IDs go up to 997,852,516,352.

A worked example

A channel’s private message link reads t.me/c/1234567890/45. The first number is the channel’s own ID. Put -100 in front and you have the chat_id, -1001234567890; 45 is the message_id. The converter above does this in both directions, and the message link page splits any link into the values the Bot API wants.

Common mistakes

  • Dropping the minus sign or the -100. Then the ID points at nothing, and Telegram answers “chat not found”.
  • Storing the ID in a 32-bit integer. Channel IDs and newer user IDs do not fit; use a 64-bit integer or a string.
  • Using a group’s old ID after it became a supergroup. The upgrade gives it a new -100 ID.

FAQ

How do I find a Telegram channel ID without a bot token?

Paste the channel's @username or t.me link into the lookup. The site checks its own directory first and otherwise asks Telegram's Bot API (getChat) for you, then shows the chat_id. This works for any public channel or public group.

Why does my ID start with -100?

Channels and supergroups are written as −(10¹² + their MTProto ID) in the Bot API. The −100 is that 10¹², written in front of the channel's own number. A basic group has just a minus sign, a user or bot has a plain positive number.

Can I look up a person by @username?

No. The Bot API only resolves public channels and public groups by name. A person's ID is only told to a bot that person has written to, or it can be read from a message they sent to a group the bot is in. The page “Your own user ID” shows how.

How do I get the chat ID of a private group?

Add a bot you control to the group, send a message that the bot receives (a command or a mention), and call getUpdates. The group's ID is in message.chat.id. If you have a message link like t.me/c/1234567890/45, the ID is −100 followed by the first number.

What about an invite link?

An invite link (t.me/+… or joinchat) hides the chat: nobody can turn one into a chat_id from outside. Once you are in the chat, read the ID with a bot, or from a message link.

Do you need my bot token?

No. The lookup never asks for one, and anything that looks like a token is refused by the server. No page here asks for it.

Is the ID the same for every bot?

Yes. A chat ID or user ID is the same number for every bot and every account. Only file_id values (photos, stickers) differ from bot to bot.

Is a Telegram chat ID the same as a username?

No. The username is a name the owner can change or give up. The chat ID is a number Telegram assigns once and never changes. Bots use the ID.

Can I find a channel ID from its link?

Yes, for a public channel: paste its t.me link into the lookup. For a private channel, a message link of the form t.me/c/<number>/<message> already contains it: put -100 in front of the first number.