# How to Create a Telegram Bot

**1. Find BotFather**

* Open Telegram and search for **@BotFather** — this is the official bot for creating and managing other bots.

<figure><img src="https://121681468-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBfW4nnOu4AysbkbyxNug%2Fuploads%2F0gAkDrnNaGMAE2srzA9E%2Fimage.png?alt=media&#x26;token=1f58d140-970f-423c-a35c-bf46c2876eb1" alt="" width="440"><figcaption></figcaption></figure>

#### 2. Start the Creation Process

* Send the **/start** command to BotFather.
* Then, use the **/newbot** command to create a new bot.

<figure><img src="https://121681468-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBfW4nnOu4AysbkbyxNug%2Fuploads%2FALUhuji8ta4TeICoKyep%2Fimage.png?alt=media&#x26;token=30fcc91e-4f2b-4dde-a6d4-e1a9667222c5" alt="" width="434"><figcaption></figcaption></figure>

#### 3. Choose a Name and Username for the Bot

* BotFather will ask you to provide a **name for your bot**. This name will be visible to users (you can change it later).
* Next, BotFather will ask for a **unique username** for your bot. The username must be unique and end with **bot** (for example, MyCoolBot or Weather\_Bot).

<figure><img src="https://121681468-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBfW4nnOu4AysbkbyxNug%2Fuploads%2FSUbQJ7CnEUG1moTWI964%2Fimage.png?alt=media&#x26;token=90acdfc6-7e4f-4c2b-b9da-c3e6c50cc0d9" alt="" width="432"><figcaption></figcaption></figure>

#### 4. Get the Token

* Once the bot is created, BotFather will give you an **API token**. This token is used to connect your bot to code and manage it via the Telegram API. Be sure to save it.

<figure><img src="https://121681468-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBfW4nnOu4AysbkbyxNug%2Fuploads%2FQId62ESXR3gLWROVEiT2%2Fimage.png?alt=media&#x26;token=59b8af37-ae28-4063-a846-b1a001a2a9d4" alt="" width="431"><figcaption></figcaption></figure>

#### 5. Connect the Bot

* Use this token to connect your bot to app.

<figure><img src="https://121681468-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBfW4nnOu4AysbkbyxNug%2Fuploads%2FB8JUVIBI0HoMjnbO8lRS%2FScreenshot%20at%20Aug%2004%2015-17-44.png?alt=media&#x26;token=00db2ad0-d3b7-4f1b-9a98-3c4bcc3e27ca" alt=""><figcaption></figcaption></figure>
