L'integrazione Telegram consente ai chatbot e agli agenti AI di Botpress di comunicare con gli utenti su Telegram tramite l'API ufficiale Telegram Bot. Permette una messaggistica bidirezionale in tempo reale, supportando testo, media, pulsanti e comandi interattivi sia nelle chat private che nei gruppi.
A livello tecnico, l'integrazione utilizza Telegraf, un solido framework Node.js, per gestire l'instradamento dei messaggi, i comandi e gli eventi provenienti da Telegram. I messaggi inviati dal tuo agente AI vengono automaticamente convertiti dal formato Markdown alla sintassi HTML supportata da Telegram, garantendo una visualizzazione perfetta di testo, link e formattazione.
Grazie a strumenti integrati per la sanitizzazione dei messaggi e gli indicatori di digitazione, questa integrazione assicura comunicazioni pulite, sicure e reattive per gli utenti finali. Gli sviluppatori possono utilizzarla per automatizzare aggiornamenti, gestire ticket o estendere i propri chatbot nelle community Telegram con una configurazione minima.
<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.