How to Find a Telegram Group ID (Supergroup & Basic)
Whether you are building a bot or configuring admin tools, you will need the Group ID of your Telegram group. Here is how to find it for both basic groups and supergroups.
Quick Method: Use @RawDataBot
- Add @RawDataBot to your group.
- Send any message in the group.
- The bot responds with the Chat ID in the
chat.idfield. - Remove the bot afterward if you prefer.
Using TelegramUserID.com
If your group has a public username, visit our lookup tool and enter the username. You will get the numeric Group ID plus other details like the group title and type.
Using the Bot API
- Create a bot via @BotFather if you do not have one.
- Add the bot to your group.
- Send a message in the group, then visit
https://api.telegram.org/bot<TOKEN>/getUpdates. - Look for the
chatobject in the response to find theid.
Basic Group vs. Supergroup IDs
Basic groups have simple negative IDs (e.g., -12345). When a group is upgraded to a supergroup (which happens automatically when you enable features like pinned messages or more than 200 members), the ID changes to a -100 prefixed number. Plan your bot code to handle both formats.
Frequently Asked Questions
Does the Group ID change when upgrading to a supergroup?
Yes. When a basic group is automatically upgraded to a supergroup, Telegram assigns a new ID with the -100 prefix. Your bot should handle the migration event to update stored IDs.
Can I find a private group ID?
Yes, but only if you are a member. Add a bot to the group or use @RawDataBot from within the group. Public groups can be looked up by username on TelegramUserID.com.