# Set up Telegram bot

{% hint style="info" %}
Before starting to use Telegram SDK (Ramper Embedded Wallet for Telegram Mini Apps), clients need to set up a bot on Telegram and provide bot token to Ramper for signing in authorization.

You can refer to [How to get Telegram bot API token](https://www.siteguarding.com/en/how-to-get-telegram-bot-api-token) in order to set up a Telegram bot and get an API token.
{% endhint %}

## **Set up your Telegram bot**

You don't have to neither write any code for this nor use your computer! Just go to the Telegram app on your device and complete 4 simple steps:

**Step 1:** Find telegram bot named "@botfarther", he will help you with creating and managing your bot.

<figure><img src="https://www.siteguarding.com/images/telegram_1.png" alt="" width="375"><figcaption></figcaption></figure>

**Step 2:** Print <mark style="color:blue;">/help</mark> and you will see all possible commands that the botfather can operate.

<figure><img src="https://www.siteguarding.com/images/telegram_2.png" alt="" width="375"><figcaption></figcaption></figure>

**Step 3**: Create a new bot type <mark style="color:blue;">/newbot</mark> or click on it.

Follow the instructions provided by him and create a new name to your bot. If you are making a bot only for experimentation, as it has to be a unique name, you can use namespace for your bot by placing your name before it in its username. By the way, its screen name can be anything you like.

<figure><img src="https://www.siteguarding.com/images/telegram_3.png" alt="" width="375"><figcaption></figcaption></figure>

**Step 4:** Congratulations! You've just created your Telegram bot. You will see a new API token generated for it.\
In sample above it's 270485614:AAHfiqksKZ8WmR2zSjiQ7\_v4TMAKdiHm9T0

**Step 5:** Provide Ramper team with the Bot Token to setup authorization (ETA 1 business day)

**Step 6:** Ramper provides App Id for Bot Token

**Step 7:** Implement [![](https://static-production.npmjs.com/da3ab40fb0861d15c83854c29f5f2962.png)npm: @ramper-v2/telegram-sdk](https://www.npmjs.com/package/@ramper-v2/telegram-sdk)


---

# 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.ramper.xyz/embedded-wallet-sdk/quickstart/for-telegram-mini-apps/set-up-telegram-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.
