How to find a Telegram chat ID: 3 ways in one minute
updated 6 min read
Ibrohim Bultakovfounder
Start freeThe quickest way: add @YuboramanBot to the group and type /id@YuboramanBot — the bot replies with the group's numeric Chat ID right away. Below are the routes for a channel, a forum topic and a private chat too.
Why @username is not enough
Every chat in Telegram has a permanent numeric identifier. An open channel may also have an @username, but a private group has none at all — which leaves the number as the only reliable value the system can work with.
That is why the Yuboraman Telegram integration accepts only a number in its chat field. It is still a number even when it starts with a minus — below we look at where the minus comes from.
The shortest route: connect it automatically
There is no need to hunt for the ID by hand at all. In the Connections section you pick “Add group”, choose which bot it runs through and press “Choose group in Telegram”.
Telegram opens its own window, you pick the group — the bot joins it and the chat comes back into the panel by itself. Nothing to copy, nothing to check, nowhere to make a typo.
A channel connects the same way: “Add channel” → “Choose channel in Telegram”. There is one condition: the bot has to be added to the channel as an admin. It needs the right to post messages and to edit them — otherwise the lead messages never reach the channel.
Get a group or channel ID with a bot: /id
You can also ask Yuboraman's official bot, @YuboramanBot, for the ID. Open t.me/YuboramanBot?startgroup=id in Telegram and it shows a group picker. Pick the group, the bot joins and right away posts a number like “Chat ID: -100…” there. That is the number you copy into the panel.
If the bot is already in the group, type /id@YuboramanBot or /start@YuboramanBot there and you get the same answer. Address the command to the bot by name: Telegram turns privacy mode on by default, so a bot that is not an admin gets a general /start only if it was the last bot to post in the group, while a command addressed to it always arrives. Your own bot connected to Yuboraman answers /start and /id the same way.
A channel has nobody to press /start, so there you use /id. Add the bot to the channel as an admin: the link t.me/YuboramanBot?startchannel&admin=post_messages+edit_messages opens a channel picker. Then publish /id as a post in the channel and the bot posts the Chat ID in the same channel. Subscribers see both messages, so delete them once you have copied the number.
Need your own numeric Telegram ID? Send /id to the same bot in a private chat. A private chat has the same ID as the user, so the positive number the bot returns is your Telegram user ID.
With any bot: Bot API getUpdates
This route rests on Telegram's official Bot API documentation and works with any bot. Add the bot to the group, type /start@bot_username in the group, then open api.telegram.org/bot<TOKEN>/getUpdates in the browser, with your bot's token in place of <TOKEN>.
In the JSON response find the "chat" object: its "id" field is the Chat ID of the group. A channel post arrives as a channel_post update, and the ID sits in the same "chat" object.
Two conditions apply. First: if the bot has a webhook set, getUpdates does not work — the documentation says so directly. Bots connected to Yuboraman run on a webhook, so for them use the /start route above. Second: the token is the bot’s password, so never paste it into third-party sites or “ID finder” services.
The forum topic ID
When forum topics are switched on in a group, every topic has its own number. The Bot API calls it message_thread_id: in the getUpdates response, that field on a message posted inside a topic is the Topic ID.
To set which topic a Yuboraman message lands in, turn on the “This group uses forum topics” checkbox in the integration and enter the Topic ID. The quickest way to learn it is to type /id@YuboramanBot inside that topic: the bot returns the Topic ID along with the Chat ID.
What the minus and the -100 mean
The shape of the number tells you the type of chat:
- A private chat — a positive number, no minus
- An ordinary group — starts with a minus, for example -123456789
- A supergroup and a channel — start with -100, for example -1001234567890
So dropping the minus in front of the ID, or cutting off the -100, is the most common mistake. Copy the number whole, exactly as it is.
The -100 is no accident but a rule from the Telegram documentation: 1000000000000 is added to the internal ID of a supergroup or channel, and the number is made negative. The documentation warns about one more thing: an ID can be longer than 32 bits (up to 52), so store it as a 64-bit integer in code.
When a group turns into a supergroup
When an ordinary group moves to a supergroup, Telegram gives it a new ID. The old number stops working, and it happens quietly — the group still looks like the same group. In the Bot API the new number arrives in the migrate_to_chat_id field.
Yuboraman detects this and sends you a message: the group has been updated, the Chat ID has to be set again. The same holds in the other cases — the bot is blocked, removed from the group or stripped of its admin rights, or the forum topic is deleted — the notification comes with the reason named.
That matters, because a failure on the Telegram side is usually silent: the message does not go out and nobody notices — that is exactly how leads go missing. A warning with the reason named breaks that silence.
