> For the complete documentation index, see [llms.txt](https://docs.pump-bot.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pump-bot.com/crypto-bot-general/pumpbot-telegramapi-json.md).

# 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)
