# Setup guide

#### 1. [Create a telegram test account](https://docs.ton.org/v3/guidelines/dapps/tma/guidelines/testing-apps#using-bots-in-the-test-environment)

#### 2. Add a username to your test account

#### 3. Install dependencies

```tsx
npm install @argent/tma-wallet starknet
```

[@argent/tma-wallet](https://www.npmjs.com/package/@argent/tma-wallet) is the Telegram wallet library.

[starknet.js](https://starknetjs.com/docs/guides/intro) is used to interact with Starknet.

#### 4. Create a Telegram Bot

Start a chat with [@BotFather](https://telegram.me/BotFather).

Prompt `/newbot` and follow the instructions.

#### 5. Create a Telegram mini-app

Run `/newapp` and follow the instructions.

You’ll be asked by BotFather to send a webapp url. You can either send anything and change it later or complete this after deploying your webapp.


---

# 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.ready.co/telegram-wallet-deprecated/setup-guide.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.
