L’intégration Telegram permet aux chatbots et agents IA de Botpress de communiquer avec les utilisateurs sur Telegram via l’API officielle Telegram Bot. Elle offre une messagerie bidirectionnelle en temps réel, prenant en charge le texte, les médias, les boutons et les commandes interactives dans les discussions privées ou de groupe.
En coulisses, l’intégration utilise Telegraf — un framework Node.js robuste — pour gérer l’acheminement des messages, les commandes et les événements provenant de Telegram. Les messages envoyés par votre agent IA sont automatiquement convertis du format Markdown vers la syntaxe HTML acceptée par Telegram, garantissant un affichage parfait du texte, des liens et de la mise en forme.
Grâce à des outils intégrés pour la sécurisation des messages et l’indication de saisie, cette intégration assure une communication propre, sécurisée et réactive pour les utilisateurs finaux. Les développeurs peuvent l’utiliser pour automatiser des notifications, gérer des tickets ou étendre leurs chatbots aux communautés Telegram avec une configuration minimale.
<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.