Skip to content

Instantly share code, notes, and snippets.

@mraaroncruz
Last active October 22, 2025 18:43
Show Gist options
  • Save mraaroncruz/e76d19f7d61d59419002db54030ebe35 to your computer and use it in GitHub Desktop.
Save mraaroncruz/e76d19f7d61d59419002db54030ebe35 to your computer and use it in GitHub Desktop.

Revisions

  1. mraaroncruz revised this gist Mar 18, 2024. 1 changed file with 3 additions and 5 deletions.
    8 changes: 3 additions & 5 deletions steps.md
    Original file line number Diff line number Diff line change
    @@ -7,15 +7,13 @@

    Go to Telegram web and open a channel, get the ID from -[channel id] from hash in the path

    https://web.telegram.org/k/#-9999999999999
    `https://web.telegram.org/k/#-9999999999999`

    -9999999999999 is the channel ID.

    [https://gist.github.com/anhtuank7c
    ](https://gist.github.com/mraaroncruz/e76d19f7d61d59419002db54030ebe35?permalink_comment_id=4991959#gistcomment-4991959)
    [Link to suggestion](https://gist.github.com/mraaroncruz/e76d19f7d61d59419002db54030ebe35?permalink_comment_id=4991959#gistcomment-4991959)

    (DEPRECATED)
    ## New improved next steps
    ## (DEPRECATED) New improved next steps
    3. Go to https://web.telegram.org
    4. Click on your channel
    5. Look at the URL and find the part that looks like `c12112121212_17878787878787878`
  2. mraaroncruz revised this gist Mar 18, 2024. 1 changed file with 12 additions and 0 deletions.
    12 changes: 12 additions & 0 deletions steps.md
    Original file line number Diff line number Diff line change
    @@ -3,6 +3,18 @@
    1. Create your bot with botfather
    2. Make you bot an admin of your channel

    ## Simplest way (via @anhtuank7c)

    Go to Telegram web and open a channel, get the ID from -[channel id] from hash in the path

    https://web.telegram.org/k/#-9999999999999

    -9999999999999 is the channel ID.

    [https://gist.github.com/anhtuank7c
    ](https://gist.github.com/mraaroncruz/e76d19f7d61d59419002db54030ebe35?permalink_comment_id=4991959#gistcomment-4991959)

    (DEPRECATED)
    ## New improved next steps
    3. Go to https://web.telegram.org
    4. Click on your channel
  3. mraaroncruz revised this gist Oct 8, 2020. 1 changed file with 13 additions and 1 deletion.
    14 changes: 13 additions & 1 deletion steps.md
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,19 @@
    ### To get the 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
    3. Go to https://web.telegram.org
    4. Click on your channel
    5. Look at the URL and find the part that looks like `c12112121212_17878787878787878`
    6. Remove the underscore and after `c12112121212`
    7. Remove the prefixed letter `12112121212`
    8. Prefix with a `-100` so `-10012112121212`
    9. That's your channel id.


    ## Old yucky next steps
    3. Make your channel public
    4. Create a public link
    5. Send a message from console to `@[your_public_link_text]`
  4. mraaroncruz created this gist Sep 10, 2018.
    8 changes: 8 additions & 0 deletions steps.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    ### To get the channel id

    1. Create your bot with botfather
    2. Make you bot an admin of your channel
    3. Make your channel public
    4. Create a public link
    5. Send a message from console to `@[your_public_link_text]`
    6. Copy chat id from response in console as the channel id