How to get ids on Telegram Messenger

 

Telegram Web

Available on https://web.telegram.org/?legacy=1#/login (have to use the legacy Telegram web client)

Follow the steps displayed to log in the app.

Web User ID

It's not possible to find the user ID using this method. So, the easiest way to do it is talking to @userinfobot. If you need to find somebody else's ID, forward a message to the bot.

This bot is not mine! Use it on your own risk!

Web Group ID

Click on the group you want and see the url displayed on your browser.

If it's a public group, you can simply use it's @name as an id.

If it's private group, the url must be like:

https://web.telegram.org/#/im?p=g331054{codeBox}

If this is the case, then the group ID is -331054. Always negative!

For private super groups the url must be like:

https://web.telegram.org/#/im?p=s1041843721_16434430556517118330{codeBox}

If this is the case, then the group ID whois be 1041843721. But it's important to know that super group IDs are always a 13 characters negative integer, so the correct ID is -1001041843721.

Web Channel ID

Click on the channel you want and see the url displayed on your browser.

If it's a public channel, the ID is @name of the channel.

If it's a private channel then the url must be similar to:

https://web.telegram.org/#/im?p=c1018013852_555990343349619165{codeBox}

If this is the case, then the channel ID would be 1018013852. It's important to know that channel's IDs are always negative and 13 characters long! So add -100 to it, making the correct ID -1001018013852.

Telegram App

You can use the app directly to generate a direct link to the message and it will contain the group/channel information.

App User ID

It is not possible to get user ID from the app itself. Have to get it from a bot or CLI

App Group ID

Tap/click on the group you want and hold/right click on a message. Copy the message link.

If it's a public group, you can simply use it's @name as an id.

If it's private group, it is not possible to get a link. Have to use CLI or Web method

For private super groups the link must be like:

https://t.me/c/1041843721/200{codeBox}

If this is the case, then the group ID whois be 1041843721. But it's important to know that super group IDs are always a 13 characters negative integer, so the correct ID is -1001041843721.

App Channel ID

Tap/click on the channel you want and hold/right click on a message. Copy the message link.

If it's a public channel, the ID is @name of the group.

If it's a private channel then the url must be similar to:

https://t.me/c/1018013852/193{codeBox}

If this is the case, then the channel ID would be 1018013852. It's important to know that channel's IDs are always negative and 13 characters long! So add -100 to it, making the correct ID -1001018013852.

Next Post Previous Post