Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Get the Telegram channel ID

To get the channel id

  1. Create your bot with botfather
  2. Make you bot an admin of your channel

New improved next steps

  1. Go to https://web.telegram.org
  2. Click on your channel
  3. Look at the URL and find the part that looks like c12112121212_17878787878787878
  4. Remove the underscore and after c12112121212
  5. Remove the prefixed letter 12112121212
  6. Prefix with a -100 so -10012112121212
  7. That's your channel id.

Old yucky next steps

  1. Make your channel public
  2. Create a public link
  3. Send a message from console to @[your_public_link_text]
  4. Copy chat id from response in console as the channel id
@crystalbit
Copy link

crystalbit commented Apr 29, 2020

much more easier way - to write public username to https://t.me/username_to_id_bot and then easily get the id in response

@mraaroncruz
Copy link
Author

mraaroncruz commented Apr 30, 2020

@crystalbit I found an alternative way in the meantime.

  1. Go to https://web.telegram.org
  2. Click on your channel
  3. Look at the URL and find the part that looks like c12112121212_17878787878787878
  4. Remove the underscore and after c12112121212
  5. Remove the prefixed letter 12112121212
  6. Prefix with a -100 so -10012112121212
  7. That's your channel id.

Soooo stupid, but it is very quick and it works.

@mraaroncruz
Copy link
Author

mraaroncruz commented Apr 30, 2020

And thanks for the comment!

@ZeroDragon
Copy link

ZeroDragon commented Aug 20, 2020

thanks !!

With the updated solution I did not even had to make my channel public!

@japentaca
Copy link

japentaca commented Sep 28, 2020

@crystalbit I found an alternative way in the meantime.

  1. Go to https://web.telegram.org
  2. Click on your channel
  3. Look at the URL and find the part that looks like c12112121212_17878787878787878
  4. Remove the underscore and after c12112121212
  5. Remove the prefixed letter 12112121212
  6. Prefix with a -100 so -10012112121212
  7. That's your channel id.

Soooo stupid, but it is very quick and it works.

The only solution I found ! ! !
Thanks a lot !

@syntaxhacker
Copy link

syntaxhacker commented Oct 1, 2020

much easier way .. forward a message from that channel to this @JsonDumpBot bot
image
can voila there's your ID

@rajesh457
Copy link

rajesh457 commented Oct 8, 2020

@crystalbit I found an alternative way in the meantime.

  1. Go to https://web.telegram.org
  2. Click on your channel
  3. Look at the URL and find the part that looks like c12112121212_17878787878787878
  4. Remove the underscore and after c12112121212
  5. Remove the prefixed letter 12112121212
  6. Prefix with a -100 so -10012112121212
  7. That's your channel id.

Soooo stupid, but it is very quick and it works.

Thank you so much

@seupedro
Copy link

seupedro commented Jan 28, 2021

Telegram Channel ID from @JsonDumpBot

You can simply forward a message to @JsonDumpBot.

The bot dumps a complete json of all request that he receives.

NOTE: I'm not affiliate and it's not my bot.

@reasje
Copy link

reasje commented Feb 17, 2021

much more easier way - to write public username to https://t.me/username_to_id_bot and then easily get the id in response

Thanks , worked for me !

@OtenMoten
Copy link

OtenMoten commented May 7, 2021

much easier way .. forward a message from that channel to this @JsonDumpBot bot
image
can voila there's your ID

Yo bro I donate 5 BAT to you because you save me a lot of lifetime.

@mansourcodes
Copy link

mansourcodes commented Jun 1, 2021

much more easier way - to write public username to https://t.me/username_to_id_bot and then easily get the id in response

Thanks

@NeihTzxc
Copy link

NeihTzxc commented Jul 12, 2021

can't use this way anymore, do you have any other way?

@OtenMoten
Copy link

OtenMoten commented Jul 12, 2021

much more easier way - to write public username to https://t.me/username_to_id_bot and then easily get the id in response

Thanks

@NeihTzxc use this method.

@a0eoc
Copy link

a0eoc commented Aug 28, 2021

much easier way .. forward a message from that channel to this @JsonDumpBot bot

Still the easiest way
Thanks

@talhazan
Copy link

talhazan commented Sep 10, 2021

much easier way .. forward a message from that channel to this @JsonDumpBot bot
image
can voila there's your ID

ty man!

@rfwn
Copy link

rfwn commented Nov 8, 2021

what if i had a channel id and wanted to get the channel link?

@mraaroncruz
Copy link
Author

mraaroncruz commented Nov 8, 2021

I still stand by my original solution above where you just have to remove a -100 from a number in a URL.

It feels a bit over-engineered to use a chatbot 🤷

@mraaroncruz
Copy link
Author

mraaroncruz commented Nov 8, 2021

lol and there are three JsonDumpBots. The one that seems to work is the one with the dumptruck icon. But I wouldn't forward them anything sensitive :D :D :D :D :D

@ayy-em
Copy link

ayy-em commented Jan 15, 2022

just wanted to say @syntaxhacker is da MVP for that bot link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment