practice lab · Ship it

Create your own Telegram bot with BotFather

Create a practice Telegram bot, keep its token secret, and know how to delete it.

  • 15 minutes
  • 10 steps
  • Beginner
  • Pro
A code editor showing changes to review before approving

Before you start

You need

  • The Telegram app on your phone or computer
  • A spare or practice Telegram account if you have one
  • A safe place to write notes, like a locked notes app
  • About 15 minutes
  1. 1

    Understand what you are making

    The official Telegram page says a bot is a small app that runs inside Telegram. Today you only create the bot. You will not make it do anything yet.

    • Read this step slowly.
    • Remember that a bot is a special account that needs no phone number.
    • Remember that this lab is only the first step before connecting any agent.

    You should see: You can say in your own words: today I only create the bot and get its token.

    Tip: Later labs and courses show how an agent can use a bot. Not today.

  2. 2

    Turn on sign-in protection first

    Your Telegram account owns the bot. Protect it before you start.

    • Open Telegram settings.
    • Look for Privacy and Security.
    • Look for two-step verification.
    • Follow the screen to turn it on.
    • Write any new password in a safe place.

    You should see: Telegram shows that extra protection is on.

    Tip: Menu names change. If you cannot find it, search Telegram help for two-step verification.

The rest of this lab is part of Pro

You can see the first 2 of 10 steps. Pro opens every lab, every course and a certificate for each course you finish.

See Pro