# Tạo bot Telegram

Bước 1: Tạo bot Telegram qua Botfather

* Truy cập vào Telegram, tìm kiếm Botfather trên thành công cụ (lưu ý chọn Botfather có tích xanh)

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

* Nhập vào thanh chat /newbot để tạo bot mới, sau đó nhập tên và username của bot như hướng dẫn. Lúc này Botfather sẽ trả về tin nhắn thành công có chứa token

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

* Lấy id của người dùng. Tìm kiếm userinfobot trên thanh công cụ, sau đó ấn start, lúc này bot sẽ trả về thông tin của người dùng bao gồm cả ID

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

* Lấy id của nhóm chat. Vào Telegram trên trình duyệt (<https://web.telegram.org/k/>), chọn vào nhóm cần lấy id, id sẽ hiện ở trên thanh url

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

* Lưu ý: Để bot có thể nhắn tin vào nhóm, bạn cần thêm bot vào trong nhóm chat. Và để bot có thể nhắn tin cho người dùng, người dùng cần chủ động nhắn tin nhắn đầu tiên đến bot

Bước 2: Thêm bot vừa được tích hợp vào phần tích hợp của UCALL

* Vào phần cài đặt trên phần mềm UCALL, chọn Tích hợp > Telegram > Kết nối Telegram mới

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

* Màn hình điền thông tin hiện lên, điền thông tin token và chat id đã lấy được từ bước 1 rồi chọn Gửi thử tin nhắn và Lưu

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

* Nếu thông tin điền vào chính xác, hệ thống sẽ gửi thử 1 tin nhắn mẫu đến chat id được điền

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

* Như vậy là việc thêm bot đã thành công, bạn có thể dùng bot này để gửi thông báo qua Telegram khi chạy chiến dịch


---

# 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://guide.ucall.vn/huong-dan-tich-hop-bot-telegram-va-larksuite-vao-callbot/tao-bot-telegram.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.
