# PumpBot: TelegramAPI.json

{% hint style="info" %}
Only needed for the PumpBot.
{% endhint %}

You only need to do this once on the setup. And we recommend to use the Telegram API for the Detection.&#x20;

### The telegramAPI.json

Below you see the telegramAPI.json. If you want to use the Telegram API you need to enter the following things: TelegramAPI, TelegramHash and your phone number in the international format, that means starting with a + at the beginning. All the Values need to entered between the quotation marks, only the TELEGRAM\_API doesnt need the quotation marks.&#x20;

```
{
   "TelegramAPI": TELEGRAM_API,
   "TelegramHash": "TELEGRAM_HASH",
   "TelegramPhoneNumber": "+PHONENUMBER"
}
```

## Get your Telegram API Keys

The easiest way is to follow the instructions in the video below. As platform select web.

{% embed url="<https://www.youtube.com/watch?v=8naENmP3rg4>" %}

#### The same as above just with pictures

So first we need to go to: <https://my.telegram.org/auth> this is what you on the first picture below. Enter your phone number and hit "Next". Telegram will send you an authorization/confirmation token which you need to enter.&#x20;

![picture 1](/files/VLim9Sfq4gkl8E4PcZe4)

Next we select the "API development tools" as you can see on the second picture below.

![picture 2](/files/o205b7187BzyNBj68qWH)

Enter an App title and a short name, select web as platform, as url [www.telegram.org](http://www.telegram.org) and click create application Now you can copy your api\_id and api\_hash into the telegramAPI.json file. And you are done. Now the Bot can read your Telegram Chats. As platform you can select web or app, I think that doesnt makes a difference.

![picture 3](/files/1R3JRunlMWQmBmN71AAN)


---

# 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.pump-bot.com/crypto-bot-general/pumpbot-telegramapi-json.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.
