# Telegram Alerts

Follow these steps to integrate your Telegram group with the **HostelMate Notification Bot** and start receiving notifications for new bookings and modifications.

### Step 1: Create a Telegram Group

1. Open the **Telegram app** on your mobile or desktop.
2. Tap the **pencil icon** or **New Message**.
3. Select **New Group**.
4. Add **@hostelmate\_bot** to the group.
5. Add any staff or managers who should receive the alerts.
6. Tap **Next**.
7. Name the group.
8. Tap **Create**.

### Step 2: Get the Group ID

1. Open **Telegram Web** at <https://web.telegram.org>.
2. Open the group you just created.
3. Look at the URL in the address bar.
4. The **Group ID** is the number after the `#`.

Example:

```
https://web.telegram.org/k/#-1234567890
```

### Step 3: Access the Finance Portal

1. Log in to the **finance portal**.

### Step 4: Add the Group ID in the System

1. In the finance portal, open **Settings > Telegram Alerts**.
2. Paste the **Telegram group ID** into the field.
3. Click **Save** to confirm the setup.

Once the group ID is saved and the `@hostelmate_bot` is in the group, you will start receiving booking alerts in Telegram.

## Stop Notifications

1. Open **Settings > Telegram Alerts**.
2. Clear the **group ID** field.
3. Click **Save**.


---

# 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.hostelmate.co/finance-management/settings/telegram-alerts.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.
