> For the complete documentation index, see [llms.txt](https://navixy.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://navixy.com/docs/expert-center/id/faq-and-troubleshooting/iot-logic/how-to-connect-telegram-with-navixy-iot-logic.md).

# Cara menghubungkan Telegram dengan Navixy IoT Logic

Integrasikan bot Telegram dengan Navixy IoT Logic untuk mengirim notifikasi otomatis. Siapkan bot, konfigurasikan ID obrolan, dan sambungkan Webhook.

Ini adalah panduan singkat tentang langkah-langkah yang mungkin diikuti untuk membuat koneksi antara IoT Logic dan Telegram.

1. Buat bot dan dapatkan token Anda

* Di Telegram, buka obrolan dengan @BotFather.
* Jalankan perintah /newbot.
* Ikuti instruksi dan salin token bot yang disediakan (formatnya seperti: 123456:ABC-...).

2. Dapatkan ID obrolan yang ingin Anda kirimi pesan

Cara umum untuk melakukan ini:

* Kirim pesan ke bot Anda (atau tambahkan ke Kelompok dan kirim pesan di sana).
* Kemudian panggil metode getUpdates dari API Telegram.
* Jika itu adalah sebuah kelompok, chat\_id biasanya berupa angka negatif.
* Pastikan bot telah menerima setidaknya satu pesan agar bot muncul di getUpdates.

<figure><img src="https://3546701789-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIgDb43gtyXcm1Av4h1np%2Fuploads%2Fgit-blob-f7f6fcc34d0900aa010886b55597bc81e71d8210%2Funknown.png?alt=media" alt=""><figcaption></figcaption></figure>

3. Kirim pesan (panggilan REST)

* Gunakan metode sendMessage dari Telegram API.
* Dalam body permintaan, sertakan chat\_id dan teks pesan.
* Permintaan harus dikirim dalam format JSON dengan header Content-Type: application/json.

<figure><img src="https://3546701789-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIgDb43gtyXcm1Av4h1np%2Fuploads%2Fgit-blob-a9dcc4cc6160133e664cb4b261ded66af5317460%2Funknown.png?alt=media" alt=""><figcaption></figcaption></figure>

4. Buat aliran IoT di Navixy

* Setelah aliran dibuat, hubungkan node Webhook di bagian tempat Anda ingin mengirim data.
* Ikuti struktur yang sama seperti panggilan API. Pada bidang URL, tempatkan endpoint permintaan:

<https://api.telegram.org/bot\\>\<BOT\_TOKEN>/sendMessage

* Di bagian Header:
* Kunci: Content-Type
* Nilai: application/json
* Terakhir, di bagian tubuh permintaan, sertakan parameter telemetri yang ingin Anda kirim, pastikan untuk menyertakan kembali chat\_id, misalnya:

{

"chat\_id": X,

"text": "Perangkat 12563254, lintang: {{latitude}}, bujur: {{longitude}}, satelit: {{satellites}}, kecepatan: {{speed}}"

}

![](https://3546701789-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIgDb43gtyXcm1Av4h1np%2Fuploads%2Fgit-blob-3ffecccdbc856d2256330f9ead8b2c6556fea221%2Funknown.png?alt=media) ![](https://3546701789-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIgDb43gtyXcm1Av4h1np%2Fuploads%2Fgit-blob-f5de8300a0b21fe30afa42ef8ebf93a335d88ead%2Funknown.png?alt=media)

Dengan langkah-langkah ini, bot Anda akan dapat menerima Pesan dengan sukses, termasuk data telemetri otomatis dari Navixy.


---

# 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://navixy.com/docs/expert-center/id/faq-and-troubleshooting/iot-logic/how-to-connect-telegram-with-navixy-iot-logic.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.
