Telegram ID: How to Find Yours or Someone Else's
In this article
You can find your own Telegram ID in the app by opening Settings > Advanced > tap your profile picture or username area, where your numeric ID is displayed. For someone else, you cannot see their ID directly in the app; you need to use a bot or the Telegram API. This guide walks you through both methods safely and accurately.
What You'll Need
- A Telegram account (mobile or desktop app).
- For finding another user's ID: a bot that reveals IDs, such as @userinfobot or @getidsbot, or a custom script using the Telegram API.
- For API method: a Telegram API ID and hash from my.telegram.org, plus basic programming knowledge.
Step-by-Step
Finding Your Own Telegram ID
- Open Telegram on your phone or desktop.
- Go to Settings (tap the hamburger menu on Android, or the gear icon on iOS/desktop).
- Tap Advanced (on some versions, this may be under Privacy and Security or directly in Settings; labels vary slightly by version and platform).
- Tap your profile picture or the area showing your name and username. A pop-up or new screen will display your numeric ID, often labeled "ID" or "User ID".
- If you don't see it there, use the bot method below for your own account as well.
Finding Someone Else's Telegram ID (or Your Own) Using a Bot
- In Telegram's search bar, type @userinfobot and open the bot.
- Tap Start to begin a chat.
- The bot will immediately reply with your own user ID and other details. To get someone else's ID, you need to forward a message from that person to the bot. (Note: forwarding may reveal your profile to the bot; use a message that doesn't contain sensitive info.)
- Alternatively, use @getidsbot: start it, then forward any message from the target user to the bot. It will reply with the sender's ID.
- For groups or channels, add the bot to the group (if you're an admin) and it will provide the group ID. For channels, forward a post to the bot.
Finding a Telegram ID via the API (Advanced)
- Go to my.telegram.org and log in with your phone number.
- Click API development tools and fill in the form to get your api_id and api_hash.
- Use a Telegram client library (e.g., Telethon for Python, TDLib) to authenticate and fetch user info. For example, with Telethon:
await client.get_entity('username')returns an object with the user's ID. - This method requires coding and is subject to Telegram's terms; use only for legitimate purposes.
Common Mistakes
- Confusing username with ID: A username is a public handle (like @john), while the ID is a numeric value. They are not interchangeable.
- Expecting to see IDs in the app for others: Telegram does not display other users' IDs in the standard interface; you must use a bot or API.
- Forwarding messages without consent: Forwarding a message to a bot can reveal the original sender's ID to the bot operator. Only do this if you have permission or it's your own message.
- Using unofficial or shady bots: Some bots may log your data. Stick to well-known bots like @userinfobot.
- Assuming group IDs are the same as user IDs: Group and channel IDs are different and often start with a minus sign.
Tips
- Your own ID is static and never changes, even if you change your username or phone number.
- Bots can also provide your ID if you send them any message; @userinfobot replies instantly.
- For developers, the API method is the most reliable for bulk or automated lookups.
- Always respect privacy: do not share someone else's ID without consent.
- If you need to find a channel's ID, forward a post to @userinfobot; it will show the channel's ID.
Troubleshooting
- Bot doesn't respond: Check your internet connection, ensure you tapped "Start", and try a different bot like @getidsbot.
- Can't find Advanced settings: On some versions, your ID might be under Settings > Privacy and Security > Data Settings, or simply tap your profile picture in the main menu.
- Forwarded message doesn't show ID: The bot may not support forwarded messages from certain privacy-restricted accounts. Ask the person to send you a direct message and forward that.
- API method fails: Ensure you're using the correct api_id and api_hash, and that your account isn't restricted. Check Telegram's API documentation for rate limits.
- ID shows as "0" or error: You might be looking at a deleted account or a bot; bots have IDs ending in "bot" in their username.
Frequently Asked Questions
Can I find someone's Telegram ID without them knowing?
No, you cannot directly see another user's ID in the app. Using a bot requires forwarding a message, which may notify the bot but not the user. The API method requires the user's username or phone number, and they may see your profile if you interact.
Is my Telegram ID private?
Your ID is not displayed publicly, but it can be obtained by bots if you forward messages or interact with them. It is not secret but not openly shown.
What is the difference between user ID and chat ID?
A user ID identifies a person, while a chat ID identifies a conversation (private, group, or channel). Group and channel IDs often start with a minus sign.
Can I change my Telegram ID?
No, your numeric ID is permanent and cannot be changed.
Why do some bots ask for my phone number to get my ID?
Legitimate bots like @userinfobot do not ask for your phone number; they get your ID from your interaction. Avoid any bot that requests sensitive info.
How do I find a channel's ID?
Forward a post from the channel to @userinfobot; it will reply with the channel's ID. Alternatively, add the bot to the channel if you're an admin.