Process multiple media files in Telegram with Gemini AI & PostgreSQL database
π€π¨ Telegram AI Assistant with Multi-File Media Group Handling, Smart File Processing & PostgreSQL Integration > AI-powered Telegram bot for text, voice, video, documents & media β with database-driven grouping an...
Template notes
π€π¨ Telegram AI Assistant with Multi-File Media Group Handling, Smart File Processing & PostgreSQL Integration
> AI-powered Telegram bot for text, voice, video, documents & media β with database-driven grouping and Telegram-safe formatting.
---
π Description
This n8n template creates a next-generation Telegram AI assistant π§ π¬ capable of handling text messages, media files, and documents with advanced processing, PostgreSQL integration, and AI-powered responses.
It is designed to solve Telegramβs media group challenge π¦ β when multiple files are sent together, they are stored, processed, and combined into one coherent AI-generated reply.
β¨ Key Features - π Multi-file media group management with PostgreSQL: - mediagroup - mediaqueue - chathistories - π Document parsing for CSV, HTML, ICS, JSON, ODS, PDF (with AI fallback), RTF, TXT, XML, and spreadsheets. - π€ Voice & video transcription for AI analysis. - πΌοΈ Image, audio, and video description for richer AI context. - π‘οΈ Telegram-safe MarkdownV2 formatting with auto-splitting for messages over 4096 chars. - β οΈ Error fallback for unsupported file types.
---