You cannot reverse-look up a Telegram username from a user ID alone
A user ID and a username are two different identifiers in Telegram, and they do not work in reverse. If you have only a user ID number, there is no built-in Telegram feature or public directory that will show you the username attached to it. User IDs are permanent and assigned automatically when an account is created. Usernames are optional, chosen by the account holder, and can be changed or deleted at any time.
The reason this lookup does not exist is by design. Telegram treats usernames as semi-private information. Someone with your user ID cannot discover your username unless you have shared it with them directly or they already know it. This protects users who want to keep their username separate from their account identity.
If you are trying to contact someone and have their user ID, your options are limited to methods that do not rely on a reverse lookup.
Key Takeaways
- User IDs and usernames are separate in Telegram, and there is no public tool to convert a user ID into a username.
- If someone shared their user ID with you directly, ask them for their username as well — they can share it in a message or through another channel.
- Usernames are optional in Telegram; many users do not have one, so the person you are looking for may not have set one up.
- If you have a user ID from a bot or API response, the bot may have also recorded the username at the same time — check your records or bot logs.
- Group or channel links sometimes include the username in the URL, which is a faster way to find someone than working from a user ID.
When you have a user ID but no username
Start by checking whether the person has a username at all. Open Telegram and go to the person's profile. If there is no username field, or it is blank, they have not set one up. Many Telegram users never create a username because they do not need one — they communicate only with contacts already in their phone or through group invitations.
If the profile shows a username, you have found it. If it does not, you will need to reach out to the person through another method — a message, a phone call, or email — and ask them to share their username or create one if they have not already.
How to find a username if you have a group or channel link
If the user ID came from a group or channel, the link itself often contains the username. A Telegram group or channel link looks like t.me/groupname or t.me/channelname. The part after the slash is the username. You can share this link with others, and anyone who clicks it will join the group or channel directly.
If you have a link but it uses a long string of numbers instead of a name — for example, t.me/c/1234567890 — that is a private channel link, and the username is not publicly visible. In that case, you cannot recover the username from the link alone.
Checking bot logs and API records
If you obtained the user ID from a Telegram bot or through an API call, the bot may have logged both the user ID and the username at the same time. Check any records, logs, or database entries from when the interaction happened. Many bots store this information automatically.
If you built or manage the bot yourself, review the bot's database or message logs. The username is often included in the user object returned by the Telegram Bot API, even if you only queried by user ID later. If the bot is still running and you have access to its code, you can query the user object again to retrieve the username if it has not changed.
Why usernames and user IDs are kept separate
Telegram separates these two identifiers for privacy and security. A user ID is permanent and unique, but it is not meant to be public. A username is what you choose to share. This design means someone cannot find your account by guessing or brute-forcing your user ID — they need your username, which you control.
If Telegram allowed reverse lookups from user ID to username, it would defeat this protection. Someone with your phone number or a user ID from a data leak could find your public username without your knowledge. By keeping them separate, Telegram gives you more control over who can find you.
What to do if you need to contact someone
If you have a user ID and need to reach the person, the most direct approach is to ask for their username through whatever channel you used to get the user ID. If they gave it to you in a message, reply and ask. If it came from a bot or service, contact the service administrator and ask whether they can provide the username or pass along a message.
Another option is to check whether the person is a member of any public groups or channels you also belong to. If you see them in a group, you can view their profile from there and check whether they have a username set. If they do, you have found it. If they do not, you can send them a direct message through the group or ask a mutual contact for their username.
Frequently Asked Questions
Can I find someone's username if I only have their phone number?
No. Telegram does not have a public directory that matches phone numbers to usernames. If you have someone's phone number, you can add them as a contact in Telegram if they have the app installed, but you will only see their username if they have set one and chosen to make it visible on their profile.
Does Telegram have a search function that works with user IDs?
Telegram's search function works with usernames, not user IDs. You can search for a username directly in the app or on the web, but there is no search field for user IDs. If you have only a user ID, you cannot search for the person using Telegram's built-in tools.
What if the person deleted their username after I saved their user ID?
If someone deletes their username, you cannot recover it through Telegram. The username is gone, and there is no archive or history of deleted usernames. You would need to ask the person for a new username if they create one, or contact them through another method.
Can a bot or third-party service look up a username from a user ID?
No. Third-party services and bots have the same limitations as regular users. The Telegram Bot API does not provide a function to look up a username by user ID alone. If a bot has the username, it is because the user shared it or the bot recorded it during a previous interaction.
Is there a way to find someone's user ID if I have their username?
Yes. You can open their profile using their username, and some tools or bots can extract the user ID from the profile. However, the reverse — finding a username from a user ID — is not possible through any official Telegram feature or public method.