> For the complete documentation index, see [llms.txt](https://docs.kuasa.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kuasa.io/kuasa-crm/projects/how-to-setup-telegram-automatic-reporting.md).

# How to Setup Telegram Automatic Reporting

{% embed url="<https://youtu.be/mw1hB4lSnqw>" %}

1.Login ke akaun anda melalui [**https://crm.kuasa.io**](https://crm.kuasa.io/)<mark style="color:blue;">**/**</mark>.

2\. Klik pada **Projects** dan pilih salah satu project yang anda ingin aktifkan fungsi telegram reporting ini.

3\. Kemudian klik button **Edit**.

![](/files/yO7EGlUSjMJO71yg8HIm)

4\. Lengkapkan maklumat di dalam kotak tersebut, Untuk dapatkan **Telegram Group ID**, Sila refer langkah seterusnya di bawah.

![T](/files/J0B5fjAXKriODGyWdMQO)

## Telegram Setup

Untuk menggunakan Telegram reporting di kuasa, memerlukan 3 perkara ini.

* **Langkah 1:** Telegram bot & Telegram API access token
* **Langkah 2:** Telegram Group ID

#### Langkah 1: Tambah Telegram Bot. <a href="#create-a-telegram-bot" id="create-a-telegram-bot"></a>

1. &#x20;Buka application telegram, kemudian search @BotFather
2. `Mula` conversation dengan `@BotFather`
3. Hantar mesej `/newbot` kepada `@BotFather`. seperti gambar di bawah ini.

![](/files/ZWrtJdYlb27IgeeoRn1U)<br>

Kemudian jawab seperti contoh seperti berikut.

![](/files/PY32bilgLhQjLxKpQDG1)

Tahniah, **Telegram BOT API** anda sudah berjaya di tambah.[<br>](<https://api.telegram.org/bot\<API-access-token\>/getUpdates?offset=0&#xA;>)

**Langkah 2: Dapatkan Group Chat ID**

1. Create telegram group yang baru kemudian Invite masuk **User Telegram BOT** yang anda tambah sebentar tadi ke dalam group yang anda inginkan sistem hantar notifikasi reporting.\
   \
   I![](/files/emsMLOJNOWLD2mmIC0Iz)

\
2\. Copy dan buka link dari telegram ini, pastikan anda menukar **\<API-access-token>** kepada API anda. **(Refer gambar di bawah ini untuk dapatkan "API Access token anda"**

**LINK TELEGRAM:**\
[https://api.telegram.org/bot\<API-access-token>/getUpdates](<https://api.telegram.org/bot\<API-access-token\>/getUpdates?offset=0&#xA;>)

\ <img src="/files/Ur8gh6Fx4feokSVtBCXn" alt="" data-size="original"><br>

![](/files/iNAuX0KTJoUznLcsEDWl)

***copy id*** di dalam chat tersebut kemudian masukkan ke dalam kotak di bawah ini.

![](/files/ZPFMrlwASs5V9TEFNoRo)

\
Bahagian setup terakhir adalah untuk anda masukkan **Telegram API Key** di dalam setting.\
\
1\. Sila ikuti 3 langkah seperti di dalam gambar yang kami telah sediakan.

![](/files/TD6Nn56WPJOCqTIKr8m8)

Untuk dapatkan **Telegram API** ini, boleh lihat gambar tutorial di bawah ini.

![](/files/x8qcsOHTMxN63D5hg3Oh)

\
Siap!, anda akan menerima mesej ini di dalam telegram mengikut masa yang telah di tetapkan!

![](/files/DyI4FTD9B2r2aiAKMXhq)

***Tahniah, setup Telegram reporting anda sudah berjaya!***


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.kuasa.io/kuasa-crm/projects/how-to-setup-telegram-automatic-reporting.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
