Tích hợp Telegram cho phép chatbot và AI agent của Botpress giao tiếp với người dùng trên Telegram thông qua Telegram Bot API chính thức. Nó hỗ trợ nhắn tin hai chiều theo thời gian thực, bao gồm văn bản, phương tiện, nút bấm và lệnh tương tác trong các cuộc trò chuyện riêng tư hoặc nhóm.
Bên trong, tích hợp này sử dụng Telegraf—một framework Node.js mạnh mẽ—để quản lý việc định tuyến tin nhắn, lệnh và sự kiện từ Telegram. Các tin nhắn do AI agent của bạn gửi sẽ tự động được chuyển đổi từ Markdown sang cú pháp HTML mà Telegram hỗ trợ, đảm bảo hiển thị hoàn hảo văn bản, liên kết và định dạng.
Với các tiện ích tích hợp sẵn để làm sạch tin nhắn và hiển thị trạng thái đang nhập, tích hợp này đảm bảo trải nghiệm giao tiếp sạch sẽ, an toàn và phản hồi nhanh cho người dùng cuối. Các nhà phát triển có thể sử dụng nó để tự động hóa cập nhật, xử lý ticket hoặc mở rộng chatbot của mình vào cộng đồng Telegram chỉ với vài bước thiết lập đơn giản.
<iframe src="https://www.youtube.com/embed/w0-UGm4mu74"></iframe>
The Telegram integration allows your AI-powered chatbot to seamlessly interact with Telegram, a popular messaging platform with a large user base. Connect your chatbot to Telegram and engage with your audience in real-time conversations. With this integration, you can automate customer support, provide personalized recommendations, send notifications, and handle inquiries directly within Telegram. Leverage Telegram's rich features, including text messages, inline buttons, media files, and more, to create dynamic and interactive chatbot experiences. Empower your chatbot to deliver exceptional user experiences on Telegram with the Telegram Integration for Botpress.
## Migrating from version `0.x.x` to `1.x.x`
### Removal of proactive conversations (and proactive users)
- Telegram does not currently support proactive conversations, so any bots using this feature will need to be updated to use the normal conversation flow.
### Removal of dedicated Markdown messages type
- The `markdown` channel message type is being deprecated in favor of integrating this behavior into the base `text` message type.
- This new Markdown behavior (commonmark spec) will allow image Markdown. However, since Telegram does not support mixed message types, it will split the message into multiple messages with images sent in between text messages.
### Addition of message limits
- Telegram has a message length limit of 4096 characters, so that limit has been added to the text parameter in the `text` message payload. Going over this limit will result in the message being rejected.