Automatic Image Watermarking via Telegram Bot and ImageKit.io - n8n Workflow

Automate watermarking photos sent to your Telegram bot using ImageKit.io. This complete n8n workflow template handles file download, processing, and delivery.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

Small businesses and creators needing automatic brand protection for shared images.
Developers looking for robust n8n templates for integrating messaging bots (like Telegram) with media processing APIs (like ImageKit.io).
Users who want a production-ready example of how to handle binary data within an n8n node sequence.
Anyone seeking efficient, low-code image automation using an n8n workflow.

Overview

Protecting digital assets, especially shared photographs, requires consistent branding or watermarking. Manually downloading, editing, and re-uploading takes time. This powerful n8n workflow solves this by creating a dedicated Telegram bot endpoint that handles the entire process autonomously. When a user sends an image to the bot, this n8n workflow detects the file, uses the Telegram API to retrieve it, uploads it securely to ImageKit.io for transformation, applies a defined logo or watermark using ImageKit's URL transformation capabilities, and finally, sends the watermarked result back to the user instantly. This entire n8n automation provides a seamless user experience and ensures every photo is branded automatically. This highly valuable n8n template saves significant manual effort.

How it Works

This robust n8n workflow starts immediately upon receiving a message via the Telegram Trigger.


  1. Incoming Message Check: The Telegram Trigger activates. The Check if Photo1 n8n node then evaluates the incoming message payload to ensure it contains a photo. If it doesn't, an error message is sent back via Telegram using a dedicated n8n node.

  2. File Path Retrieval: If a photo is detected, the n8n workflow uses an HTTP Request n8n node (Get File Path) to communicate with the Telegram File API, retrieving the unique file path associated with the uploaded photo ID.

  3. Image Download: The next HTTP Request n8n node (Download Image) uses the retrieved path to download the raw image file content. This binary data is passed internally through the n8n workflow.

  4. ImageKit Upload: The downloaded image is sent to ImageKit.io using the Upload to ImageKit n8n node (an HTTP Request). This makes the image accessible for transformations.

  5. Watermarking: The Add Logo1 n8n node (also an HTTP Request) constructs a specific ImageKit URL that includes transformation parameters necessary to overlay a watermark or logo onto the image. This leverages ImageKit's real-time image manipulation features, demonstrating the power of n8n templates for API integration.

  6. Delivery: Finally, the Send Watermarked Photo n8n node sends the resulting URL/file back to the original Telegram chat, completing the automated n8n workflow cycle.

Installation Guide

To use this advanced n8n workflow, follow these setup steps:


  1. Import: Copy the entire n8n workflow JSON structure and paste it into your n8n instance (New -> Import from JSON).

  2. Telegram Bot Setup:

You must configure the Telegram Trigger1 n8n node with your Telegram Bot API Token. This n8n trigger will listen for new photos.
Ensure your Telegram credentials are set up for both the Telegram Trigger and the outbound Send Watermarked Photo n8n node.

  1. ImageKit.io Configuration:

Set up an ImageKit account. You will need your ImageKit Private Key and Endpoint URL.
The HTTP Request n8n nodes (Upload to ImageKit, Add Logo1) must be configured with the necessary authentication (usually Basic Auth or custom headers) and the appropriate ImageKit API endpoints. Pay special attention to the parameters required for applying the watermark, typically achieved by constructing a transformation URL that ImageKit processes in real-time.

  1. Activation: Once all credentials and settings are verified across every n8n node, activate the n8n workflow. The Telegram Trigger will then begin listening for incoming photos. This powerful n8n template is now ready for use.

Node Details

Telegram Trigger1 (n8n trigger): The starting point of the n8n workflow. It is configured to listen for real-time updates from the Telegram bot, initiating the automation upon receiving a new message or photo.
Check if Photo1 (IF n8n node): A crucial core logic flow control n8n node. It checks the incoming data structure to confirm that the message type is a photo. If the condition is false, the flow branches to send an error message instead of processing the file.
Get File Path (HTTP Request n8n node): Interacts with the Telegram API's getFile endpoint to determine the temporary file path required to download the image.
Download Image (HTTP Request n8n node): Downloads the raw binary data of the image from Telegram's servers. This prepares the binary data for upload to ImageKit. This is a vital step in the n8n workflow.
Upload to ImageKit (HTTP Request n8n node): Sends the downloaded binary file data to the ImageKit.io API, making the image available in their system for real-time processing and watermarking.
Add Logo1 (HTTP Request n8n node): This n8n node generates the watermarked version. It constructs the ImageKit transformation URL, instructing the service to overlay a pre-defined logo or text watermark onto the newly uploaded image.


  • Send Watermarked Photo (Telegram n8n node): The final action. This n8n node sends the fully processed, watermarked image URL back to the user in the Telegram chat, completing the cycle of this automated n8n workflow.

Related n8n Workflows

Paid

Nodes: 5 Nodes
Updated: December 26 2025
View all
Created by
Malik Hashir
Malik Hashir

Featured*