Telegram 整合讓 Botpress 聊天機器人和 AI 助理能透過官方 Telegram Bot API 與用戶在 Telegram 上互動。它支援雙向即時訊息傳遞,涵蓋文字、媒體、按鈕及互動指令,可用於私人聊天或群組。
在技術層面上,這個整合採用 Telegraf——一個強大的 Node.js 框架——來管理來自 Telegram 的訊息路由、指令和事件。你的 AI 助理發送的訊息會自動從 Markdown 格式轉換為 Telegram 支援的 HTML 語法,確保文字、連結和格式都能正確顯示。
這個整合內建訊息淨化和輸入中指示等工具,確保最終用戶獲得乾淨、安全且即時的溝通體驗。開發者可以用它來自動推播更新、處理客服單,或輕鬆將聊天機器人擴展到 Telegram 社群。
<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.