> ## Documentation Index
> Fetch the complete documentation index at: https://uncoded.ch/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Set Up Telegram for unCoded

To connect unCoded with Telegram, you first need to set up a communication channel so the bot can send updates directly via Telegram. This setup is optional.

<Note>
  All steps in this documentation assume you are using the **Telegram desktop or mobile client** (Windows, iOS, Android).
</Note>

***

<Steps>
  <Step title="Create a new Bot via BotFather" titleSize="h2">
    * Open a chat with @BotFather on Telegram.
    * ​Send the command:
      ```text theme={null}
      /newbot
      ```
    * ​Follow the prompts to choose a **name** and **username** for your bot.
    * ​Once complete, you will receive the **Bot Token**, which you will later add to your server configuration.

    <Frame>
      <img src="https://mintcdn.com/arrowtradeag/69uS7bJcUk648enh/images/image26.png?fit=max&auto=format&n=69uS7bJcUk648enh&q=85&s=d7560307a58027af694fc42292fddb63" alt="Image26" width="582" height="951" data-path="images/image26.png" />
    </Frame>

    ***
  </Step>

  <Step title="Create a Group and Add the Bot" titleSize="h2">
    To link unCoded with Telegram, you need a dedicated group.

    \*\*How to create the group:\*\*​

    * Open the Telegram **desktop or mobile client**.
    * ​Click on the **menu icon (three horizontal lines)** in the top left corner.
          <Frame>
            <img src="https://mintcdn.com/arrowtradeag/RV38J3ZV2Zg0LbjJ/images/image28.png?fit=max&auto=format&n=RV38J3ZV2Zg0LbjJ&q=85&s=4dcb9db605d3f60fe7db24d28c600882" alt="Image28" width="378" height="370" data-path="images/image28.png" />
          </Frame>
    * Select **New Group**.

    <Frame>
      <img src="https://mintcdn.com/arrowtradeag/BpnCzx8sZZN8B5wh/images/image-(28).png?fit=max&auto=format&n=BpnCzx8sZZN8B5wh&q=85&s=3be023952df6865373484bea016ac91e" alt="Image (28)" title="Image (28)" className="mx-auto" width="646" height="1254" data-path="images/image-(28).png" />
    </Frame>

    * Give the group a **name** (e.g., `unCoded Trading`).

    <Frame>
      <img src="https://mintcdn.com/arrowtradeag/KTn03D_cta8bzTEC/images/30.png?fit=max&auto=format&n=KTn03D_cta8bzTEC&q=85&s=43536833da584597ad177739506e5c76" alt="30" width="894" height="357" data-path="images/30.png" />
    </Frame>

    * When asked to **add participants**, immediately add:
      * ​Your newly created **Telegram bot** (from BotFather).

    <Frame>
      <img src="https://mintcdn.com/arrowtradeag/KTn03D_cta8bzTEC/images/31.png?fit=max&auto=format&n=KTn03D_cta8bzTEC&q=85&s=51a4ca83e579dde7ba0b91f93884fa33" alt="31" width="876" height="404" data-path="images/31.png" />
    </Frame>

    * The helper bot **@myidbot**.

    <Note>
      You will also be a member of the group automatically.
    </Note>

    <Frame>
      <img src="https://mintcdn.com/arrowtradeag/KTn03D_cta8bzTEC/images/32.png?fit=max&auto=format&n=KTn03D_cta8bzTEC&q=85&s=62a04bdb1b5cebd08875067254e83286" alt="32" width="366" height="156" data-path="images/32.png" />
    </Frame>

    * Save the setting.
  </Step>

  <Step title="👷 Give Your Bot Administrator Rights" titleSize="h2">
    <Note>
      Depending on the Telegram version you are using (Windows, web, mobile, etc.), this process may vary. If you need help, feel free to contact our support on Telegram.
    </Note>

    For the bot to function properly in the group, it must be set as an **Administrator**.

    **Steps:**

    * ​Open your new group.
    * ​Click on the **three dots (⋮)** in the top right corner and select **Manage Group**.
          <Frame>
            <img src="https://mintcdn.com/arrowtradeag/XrEH_drKwpIfFcsd/images/33.png?fit=max&auto=format&n=XrEH_drKwpIfFcsd&q=85&s=ab006eda595e5b4a28d0f0aeceda0dd6" alt="33" width="2261" height="1015" data-path="images/33.png" />
          </Frame>
    * Go to **Administrators**.

    <Frame>
      <img src="https://mintcdn.com/arrowtradeag/XrEH_drKwpIfFcsd/images/35.png?fit=max&auto=format&n=XrEH_drKwpIfFcsd&q=85&s=ec2e01af2ca1d56e9e8f63011cf8b232" alt="35" width="876" height="1457" data-path="images/35.png" />
    </Frame>

    * Click **Add Administrator.**

    <Frame>
      <img src="https://mintcdn.com/arrowtradeag/XrEH_drKwpIfFcsd/images/36.png?fit=max&auto=format&n=XrEH_drKwpIfFcsd&q=85&s=f8d9a4dc6d9d183e41eb4a6266b65b0f" alt="36" width="891" height="1464" data-path="images/36.png" />
    </Frame>

    * Select your **unCoded Bot** (Or Right-Click it).

    <Frame>
      <img src="https://mintcdn.com/arrowtradeag/AHv4hmU-VORoyAdS/images/37.png?fit=max&auto=format&n=AHv4hmU-VORoyAdS&q=85&s=174124e0f4f7270de4c1b54cb04b583c" alt="37" width="866" height="1813" data-path="images/37.png" />
    </Frame>

    * Confirm with **Save**.

    <Note>
      💡 Normal administrator rights are sufficient. You don’t need to enable or adjust any special permissions.
    </Note>
  </Step>

  <Step title="🧑🏻‍🤝‍🧑🏻 Retrieve the Group Chat ID" titleSize="h2">
    In the group chat, send:

    ```text theme={null}
    /getgroupid@myidbot
    ```

    <Frame>
      <img src="https://mintcdn.com/arrowtradeag/AHv4hmU-VORoyAdS/images/38.png?fit=max&auto=format&n=AHv4hmU-VORoyAdS&q=85&s=87b6bcfaf48ea801dad64a5548ca4962" alt="38" width="321" height="151" data-path="images/38.png" />
    </Frame>

    @myidbot will reply:

    1. ​**Group ID** (e.g., `-100111111111`)
  </Step>
</Steps>

<Note>
  To get your own user ID, send `/getid` in a private chat with the bot. **Lets move on with the next step!**
</Note>
