Telegram Bot API

Telegram Chat ID Finder

This Telegram chat ID finder shows the chat_id of every private chat, group, supergroup, channel and forum topic your bot has recently received updates from: paste the bot token, send the bot a message and press one button.

The token stays in your browser (localStorage) and is sent only to api.telegram.org.

Send any message to your bot (or add it to a group or channel and post there), then press the button.

Updates are read without an offset, so they stay unconfirmed and your bot still receives them.

How to get a Telegram chat ID

  1. Paste the token of your bot (where to find it: /guides/telegram-bot-token.html). Tick Test server only if the bot lives in the test environment.
  2. Write anything to the bot in a private chat. For a group, add the bot and send /start@your_bot — with privacy mode on, the bot sees only commands addressed to it. For a channel, add the bot as an administrator and publish a post.
  3. Press Find chat IDs. The table lists each chat with its name, type, chat_id and, for forum topics, the message_thread_id. Use Copy next to the ID.
  4. For a public channel or supergroup you can skip the updates and type its @username into the lookup field instead.

What happens under the hood

First the tool calls getMe to check the token and show which bot you are using. Then it calls getUpdates with limit 100 and timeout 0 — and without offset. Without an offset Telegram does not confirm the updates, so your bot (or the next run of the tool) still receives them.

Chats are collected from messages and edited messages, channel posts, business messages, callback queries, my_chat_member and chat_member changes, join requests, reactions and boosts. That is why simply adding the bot to a group or channel is often enough for the chat to show up.

The @username lookup calls getChat. The Bot API accepts a username only for public supergroups and channels; users can't be looked up by username.

If no chats appear

Privacy

The token is saved only in your browser's localStorage, and requests go directly from your browser to api.telegram.org. Nothing passes through our server. You can repeat the same call by hand in /telegram-bot-api-tester.html#getUpdates. For every chat type in detail read /guides/telegram-chat-id.html, and to send the first message to the ID you found see /guides/telegram-bot-send-message.html.

Frequently asked questions

How do I find my Telegram chat ID?

Send any message to your bot, paste the bot token into the tool above and press Find chat IDs. The table shows the chat_id; for a private chat with the bot it equals your user ID.

Why does the tool find no chats?

There are no unconfirmed updates: nobody wrote to the bot in the last 24 hours, or your running bot has already confirmed them with offset. If a webhook is set, getUpdates returns 409 Conflict; the tool offers to delete the webhook.

Will the tool take updates away from my bot?

No. getUpdates is called without offset, so Telegram does not mark the updates as confirmed and your bot still receives them.

Why does a group or channel ID start with -100?

Supergroups and channels have IDs like -1001234567890, basic groups have negative IDs, users positive ones. Always pass the full number, including the minus and -100.

Is it safe to paste my bot token here?

The token stays in your browser's localStorage and is sent only to api.telegram.org — not to our server. If a token ever leaks, revoke it with /revoke in @BotFather.

Other utilities

MarkdownV2 & HTML escaperMini App initData validatorWebhook checkerBot API Tester