# Connecting Your Telegram Bot to the Desktop Bot

By linking your Telegram bot with your desktop bot, you can manage tasks, edit or stop them, and check referrals seamlessly across both platforms.

***

### Step 1: Create Your License Key

1. Head to [Leap License Portal](https://license.leap-blockchain.com/).
2. Make sure you’ve already created your **license key**.
   * If not, follow the prompts on the site to generate one.
3. Once your key is ready, click the **“Link Telegram”** button.

<figure><img src="/files/HJu1GUKUNkJN9N3kFq9T" alt=""><figcaption></figcaption></figure>

### Step 2: Generate Your Code

* After clicking **“Link Telegram”**, a **unique code** will be generated.
* This code is valid for **15 minutes only**, so be ready to use it straight away.

### Step 3: Open the Telegram Bot

1. Go to our official Telegram bot: [Leap Trading Bot](https://t.me/leaptrading_bot).
2. In the bot menu, click **“Referrals”**.
3. Then select **“Link to Dashboard”**

<figure><img src="/files/3KYZGPocPHqdogldAZn3" alt=""><figcaption></figcaption></figure>

***

### Step 4: Link Your Dashboard

* Paste the **15-minute code** generated in Step 2 into the Telegram bot’s **Link to Dashboard** field.
* Once confirmed, your Telegram account will be successfully linked to your desktop bot.

***

### Step 5: Start Managing on the Go 🚀

You’re all set!

* **Edit tasks** directly from Telegram.
* **Stop tasks** instantly without needing to be at your desk
* **Check referrals** and track your network across both platforms.

<figure><img src="/files/82ZEDKqTCwQ12GYxAdog" alt=""><figcaption></figcaption></figure>

***

👉 **Tip:** If your code expires before you paste it into Telegram, simply generate a new one by repeating **Step 2**.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.leap-blockchain.com/leap-trading-sol-bot/connecting-your-telegram-bot-to-the-desktop-bot.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
