AutomationMart
Home/Browse/Automate Telegram message processing - separate text and files πŸ’¬πŸ“
n8n

Automate Telegram message processing - separate text and files πŸ’¬πŸ“

n8nn8n11 modulesv1.0
Google DriveTelegramGemini

Introduction Tired of manually downloading a file through different Telegram messages? This workflow acts as a smart receptionist for your Telegram bot, automatically processing incoming messages to cleanly separate text from file attachments, getting them ready for any automation you can dream up! πŸ“₯ --- 🎯 What This Does This workflow solves the challenge of handling varied Telegram messages within a single automation workflow. Incoming messages can be just text, just a file, or a

At a glance

Automate Telegram message processing - separate text and files πŸ’¬πŸ“ is a ready-made n8n workflow you import as a workflow JSON file β€” no build required. It connects Google Drive, Telegram, Gemini. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
Google Drive, Telegram, Gemini
Modules
11
Price
Free
Version
v1.0
Automate Telegram message processing - separate text and files πŸ’¬πŸ“ workflow diagram

About this workflow

Introduction Tired of manually downloading a file through different Telegram messages? This workflow acts as a smart receptionist for your Telegram bot, automatically processing incoming messages to cleanly separate text from file attachments, getting them ready for any automation you can dream up! πŸ“₯ --- 🎯 What This Does This workflow solves the challenge of handling varied Telegram messages within a single automation workflow. Incoming messages can be just text, just a file, or a file with a caption. This template intelligently identifies the message type and routes it down the correct path, isolating the text content and downloading the file attachment. It's perfect for community managers, support teams, or anyone building a Telegram-powered chatbot. --- πŸ”„ How It Works 1. Listens for New Messages: The workflow starts the moment a new message is sent to your connected Telegram bot. 2. Checks Message Content: A Switch node instantly determines if the message contains: - Text only - Attachment only - Attachment with a message (text caption) 3. Separates Message and File: Based on the content, the workflow isolates the text (from the message or caption) and the file's metadata (fileid, filename). 4. Downloads the Attachment: For any message containing a file, the workflow automatically downloads it, making the binary data available for the next steps in your automation. 🧩 Nodes Used - Telegram Trigger - Telegram - Switch - Set - Split Out - No Operation - NoOp (as a placeholder for your next steps) --- πŸš€ Setup Requirements - Credentials: You'll need a Telegram Bot API Token (Key) and Chat ID. - Accounts: A Telegram account. - Setup Time: Less than 5 minutes. Set up steps 1. Create a Telegram Bot: - First, you need a bot. Open Telegram and send a message to the official @BotFather. - Send the command /newbot. - Follow the prompts to choose a name and username for your bot. - BotFather will provide you with a unique API Token. Copy this token, it's what you'll need for the next step. 2. Add Credentials to n8n: - In your n8n workflow, navigate to the Credentials section in the left panel. - Click Add credential, search for "Telegram," and select it. - Paste the API Token you copied from BotFather into the Access Token field. - Click Save to create your credential. 3. Connect Your Bot to the Workflow: - Back on the canvas, open the Waiting For Message (Telegram Trigger) node. - In the Credential for Telegram API dropdown, select the credential you just created. - Open the Get & Download Attachment (Telegram) node and select the same credential. 4. Activate and Test! - Click the Activate toggle in the top right corner of your screen. - Now, send a few different messages to your new bot on Telegram to test all the paths: - A simple text message (e.g., "Hello!"). - A file (like a PDF or Notepad) with no text. - A file with a caption(message). - You can check the Executions tab in n8n to see each test run successfully! The NoOp nodes at the end of each path show you the final, cleanly separated data. --- πŸ’Ž Benefits / Why It Matters This template provides a robust and reliable foundation for any Telegram automation. By neatly separating text from files, you can seamlessly connect Telegram to any other service whether you're archiving documents to Google Drive, analyzing feedback with Gemini, or logging support requests in a database. It saves development time and ensures your automations run smoothly

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n β†’ click the menu β†’ Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Cybersecurity Intelligence: Create Daily Digest & Viral Topics with Gemini AI

This n8n workflow template simplifies the process of digesting cybersecurity reports by summarizing, deduplicating, organizing, and identifying viral topics of interest into daily emails. It will generate two types of emails: - A daily digest with summaries of deduplicated cybersecurity reports organized into various topics. - A daily viral topic report with summaries of recurring topics that have been identified over the last seven days. This workflow supports threat intelligence analysts dig

Free

Detect text within new Telegram images using Google Cloud Vision (OCR) and send it as a new message in Telegram

Every time a new image containing text is posted to Telegram, Make will detect the text using Google Cloud Vision (OCR) and send it as a new message to a specified Telegram channel.

Free

Send new files from Google Drive to Magentrix

Every time a new file is uploaded to your Google Drive, Make will automatically upload the document to Magentrix.

Free

Google Drive duplicate file manager

Google Drive Duplicate File Manager πŸ§ΉπŸ“ Purpose: Automate the process of finding and managing duplicate files in your Google Drive. Who's it for? Individuals and teams aiming to streamline their Google Drive. Anyone tired of manual duplicate file cleanup. What it Solves: Saves storage space πŸ’Ύ. Reduces file confusion πŸ˜•βž‘οΈπŸ™‚. Automates tedious cleanup tasks πŸ€–. How it works: 1. Trigger: Monitors a Google Drive folder for new files. 2. Configuration: Sets rules for keeping and handling duplicates.

Free

Analyze stock charts with GPT-4 Vision and send results via Telegram

n8n Workflow: AI-Powered Stock Chart Analysis Bot for Telegram This is a powerful n8n automation workflow that integrates a Telegram bot with OpenAI's multimodal large language model (GPT-4 Vision) to provide users with real-time stock chart analysis. Workflow Breakdown Receive Image: The workflow is initiated by a Telegram Trigger. It activates whenever a user sends an image (e.g., a stock's candlestick chart) to a designated Telegram chat, automatically downloading the file.

Free

Send Telegram messages for new Microsoft To Do tasks

Every time a new task is added to a Microsoft To Do list, Make will automatically share it to a selected chat in Telegram.

Free

Hostinger daily VPS snapshot and server metrics

Keep your Hostinger VPS servers secure with automated backups! This n8n (self-hosted) workflow for is designed to create daily snapshots and send server metrics effortlessly, ensuring you always have an up-to-date recovery copy. Key Features: βœ… Automated Snapshots: Daily execution with zero manual intervention. βœ… Smart Replacement: Hostinger allows only 1 snapshot per VPSβ€”the workflow automatically replaces the previous one. βœ… Notifications: Alerts via WhatsApp (Evolution API) or other configura

Free

Line chatbot with Google Sheets memory and Gemini AI

Main Use Case This workflow enables automated, AI-assisted replies to users messaging a LINE Official Account, while storing and referencing chat history from Google Sheets to maintain context. Ideal for businesses or support teams that want to provide smart, personalized customer interactions using AI with memory. How It Works (Step-by-Step) 1. Connect to LINE Official Account's API A Webhook listens for incoming messages from users on LINE. When a message is received, it triggers the workflo

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint β€” instant download
  • Setup guide PDF included
  • 5 downloads Β· valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

β‚Ή2,499/ session
3 hrs Β· video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free