Skip to content

Instantly share code, notes, and snippets.

@sovannarithcheav
Created July 1, 2022 04:27
Show Gist options
  • Select an option

  • Save sovannarithcheav/513117ee4b945668220bc0f66b4fa2d2 to your computer and use it in GitHub Desktop.

Select an option

Save sovannarithcheav/513117ee4b945668220bc0f66b4fa2d2 to your computer and use it in GitHub Desktop.
Getting started with Telegram Bot

Getting started with Telegram Bot

  • Sign up for Telegram using any application with a phone number (decide which phoneNumber u will use)

  • Log in to your Telegram core: https://my.telegram.org

  • Create a new Bot in Telegram using @BotFather and you’ll get response back along with API Token

    • Sample response

      Done! Congratulations on your new bot. You will find it at t.me/Notificationbot. You can now add a description, about section and profile picture for your bot, see /help for a list of commands. By the way, when you've finished creating your cool bot, ping our Bot Support if you want a better username for it. Just make sure the bot is fully operational before you do this.
      
      Use this token to access the HTTP API:
      5559722447:AAE4XaMl1TjvNlNxNoTG1QyYVO0ZWQC48-0
      Keep your token secure and store it safely, it can be used by anyone to control your bot.
      
      For a description of the Bot API, see this page: https://core.telegram.org/bots/api
  • Go to "API development tools" and fill out the form(fill the URL with the url u got from create bot, ex: t.me/Notificationbot)

  • Telegram Bot API Documents: https://core.telegram.org/bots/api

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