Pinapahintulutan ng Telegram integration ang mga chatbot at AI agent ng Botpress na makipag-usap sa mga user sa Telegram gamit ang opisyal na Telegram Bot API. Nagbibigay ito ng dalawang-daanang real-time na pagmemensahe, sumusuporta sa text, media, mga button, at interactive na utos sa loob ng mga pribadong chat o grupo.
Sa likod ng proseso, ginagamit ng integration ang Telegraf—isang matatag na Node.js framework—para pamahalaan ang pagruruta ng mga mensahe, utos, at kaganapan mula sa Telegram. Ang mga mensaheng ipinapadala ng iyong AI agent ay awtomatikong kino-convert mula Markdown papuntang HTML syntax na suportado ng Telegram, para siguradong tama ang pagkakaayos ng text, link, at format.
Dahil may kasamang mga gamit para sa paglilinis ng mensahe at typing indicator, tinitiyak ng integration na ito ang malinis, ligtas, at tumutugong karanasan sa komunikasyon para sa mga end user. Maaaring gamitin ito ng mga developer para mag-automate ng mga update, mag-asikaso ng mga ticket, o palawakin ang kanilang chatbot sa mga komunidad sa Telegram nang minimal ang setup.
<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.