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

This comment has been minimized.

Copy link

@crystalbit 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

This comment has been minimized.

Copy link
Owner Author

@mraaroncruz 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

This comment has been minimized.

Copy link
Owner Author

@mraaroncruz mraaroncruz commented Apr 30, 2020

And thanks for the comment!

@ZeroDragon

This comment has been minimized.

Copy link

@ZeroDragon ZeroDragon commented Aug 20, 2020

thanks !!

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

@japentaca

This comment has been minimized.

Copy link

@japentaca 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

This comment has been minimized.

Copy link

@syntaxhacker 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

This comment has been minimized.

Copy link

@rajesh457 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

This comment has been minimized.

Copy link

@seupedro 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

This comment has been minimized.

Copy link

@reasje 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 !

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