# Deploying to Telegram

You can easily deploy your created chatbots to Telegram from your user account.&#x20;

Follow the instructions below:

#### 1. Create a Bot on Telegram

Log into your Telegram account and search for the ["BotFather"](https://t.me/botfather) account.&#x20;

Click "Start" and then click the /newbot link

<figure><img src="https://3133483582-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ff3p8qRvAP2sF6vGQqgwr%2Fuploads%2FIokE0GgcdhkLxjby1w4z%2FScreenshot%202024-12-21%20at%2012.32.44%E2%80%AFAM.png?alt=media&#x26;token=7e7047d8-7db2-4fbf-8c88-600edb98e6a2" alt="" width="563"><figcaption></figcaption></figure>

#### 2. Follow on-screen instructions and create a new bot

BotFather will ask you for the following:

* A name for your Telegram bot
* A username for your Telegram bot. This must be unique and should end in "bot" (such as "telgeramgf\_bot")

#### 3. Copy the bot API key

Once you've created your bot, BotFather will share an API key for the bot. Keep this API key safe.

<figure><img src="https://3133483582-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ff3p8qRvAP2sF6vGQqgwr%2Fuploads%2FORz3FfsbNyyjg3XEs6h7%2FScreenshot%202024-12-21%20at%2012.36.35%E2%80%AFAM.png?alt=media&#x26;token=5c4f7a52-44df-4988-b3c0-1b61ae87ecbb" alt="" width="563"><figcaption></figcaption></figure>

#### 4. Add the API key to your chatbot

Go to CoderGF.com, log in, and go to the [Dashboard](https://codergf.xyz/dashboard)

Scroll down to find your chatbots. If you haven't created one, please create a chatbot first.

Once you've created a chatbot, refresh the page.&#x20;

Find your chatbot, and click on "Telegram" under actions.

You will prompted to enter the API key you just saved. Enter the key and click on "Deploy"

<figure><img src="https://3133483582-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ff3p8qRvAP2sF6vGQqgwr%2Fuploads%2FTtwTShL5lmsAA39laUL1%2Fimage.png?alt=media&#x26;token=bdf71f61-c892-4a05-b850-d83ca2e637fc" alt="" width="563"><figcaption></figcaption></figure>

Wait for a few seconds - your Telegram bot will now be live!

#### 5. Initialize the Bot

For best results - and to prevent the bot from expiring - we recommend that you initialize the bot first.

After creating the Telegram bot and connecting it to your chatbot with the API, visit the bot in Telegram (it will have the same handle as the \_bot ending username you selected earlier)

* Click on "Start" or just type in "/start"
* Send any random message

This Telegram bot will have the exact same content policy, personality, and traits as your created chatbot, except it will be easier to chat with from a more familiar platform.
