# Notification config

In addition to website notifications, XAPY supports instant notifications or alerts via the Telegram app.

XAPY categorizes alerts into two types: <mark style="color:red;">Important Alerts</mark> and <mark style="color:green;">Transaction Logs</mark> -> You can check the description section on [app.xapy.io](https://app.xapy.io/settings?q=telegram) for more details.

**Step 1: Create a bot using BotFather to** [**obtain the bot token**](#user-content-fn-1)[^1]

* Type "botFather" into the search bar, then select the correct Telegram username: @BotFather.
* In the message box, type "/" and select "/newbot".
* Enter any name for your bot, then create a username for it (please follow Telegram's requirements: the username must end with the word "bot", for example: *abcxyz\_bot*).
* A string of characters (token) generated after using BotFather to create your bot. Please save this to connect with XAPY

<figure><img src="/files/hLCZYgStstgzeni8NAlz" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/OlOewwgp9kNFIdKLfKaB" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="/files/rBDNUbzC6IfLc4H6JMiL" alt="" width="563"><figcaption></figcaption></figure>

**Step 2: Create a group, add the bot to the group, and get the group ID**

* Click the "+" icon at the bottom of the list and select "New Group."
* Search for the bot you created earlier (search using the @username you set during creation), then tick to select and add it.
* Next, rename the group as you wish and click create. By default, the group now contains you and the added bot. Look at your browser's address bar; you will see a string of numbers at the end following a " - " sign (for example: -5082564820) -> **This is the Group ID** you need to save to XAPY.

<figure><img src="/files/vhLTYWfUROeA3uhfI8JC" alt=""><figcaption></figcaption></figure>

**Step 3: Enter the bot token and group ID obtained above into XAPY’s settings**

* Similarly, repeat step 1 and step 2 to obtain the Bot Token and Group ID for the remaining "Transaction Log" group.
* Enter the Bot Token and Group ID into the corresponding fields on XAPY, verify with 2FA, and save.

<figure><img src="/files/86MXfyBbeOauzZhrnv77" alt=""><figcaption></figcaption></figure>

[^1]: *It is a string of characters (token) generated after using BotFather to create your bot. Please save this to connect with XAPY.*


---

# 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.xapy.io/setup/on-xapy-platform/notification-config.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.
