Automate Telegram Sticker Responses with n8n
detail.loadingPreview
Effortlessly automate responses to Telegram messages containing stickers. This n8n workflow identifies stickers, extracts their details, and sends personalized replies, or informs the user if no sticker was found.
About This Workflow
This n8n workflow provides a simple yet powerful way to interact with your Telegram audience. It begins by triggering on any incoming Telegram message. A conditional node then checks if the message includes a sticker. If a sticker is present, the workflow extracts crucial information like the sticker's file ID and its set name, and then crafts a personalized reply to the user. If no sticker is detected in the message, a different notification is sent to the user, ensuring clear communication. This setup is ideal for creating engaging bots or automating simple feedback mechanisms within Telegram groups.
Key Features
- Sticker Detection: Automatically identifies messages containing stickers.
- Dynamic Response Generation: Creates personalized replies based on sender and sticker information.
- Conditional Logic: Branches workflow execution based on whether a sticker is present.
- Information Extraction: Retrieves sticker file ID and sticker set name.
- User Notification: Informs users if their message lacks a sticker.
How To Use
- Set up Telegram Trigger: Configure the 'Telegram Trigger' node with your bot's API token to listen for incoming messages.
- Implement Conditional Logic: Add an 'IF' node named 'Look for Sticker'. In its conditions, set
value1to={{!!$node["Telegram Trigger"].data["message"]["sticker"]}}andvalue2totrue. - Configure Sticker Found Response: Connect the 'true' output of the 'Look for Sticker' node to a 'Telegram' node named 'Return Sticker'. In its 'text' parameter, use
Hi {{$node["Look for Sticker"].data["message"]["from"]["first_name"]}}! The ID of the sticker is: {{$node["Look for Sticker"].data["message"]["sticker"]["file_id"]}} It is part of the sticker-set: {{$node["Look for Sticker"].data["message"]["sticker"]["set_name"]}}. Set the 'chatId' to={{$node["Look for Sticker"].data["message"]["chat"]["id"]}}. - Configure No Sticker Found Response: Connect the 'false' output of the 'Look for Sticker' node to another 'Telegram' node named 'Return no Sticker found'. In its 'text' parameter, use
Hi {{$node["Look for Sticker"].data["message"]["from"]["first_name"]}}! Your message did not contain any sticker.. Set the 'chatId' to={{$node["Look for Sticker"].data["message"]["chat"]["id"]}}.
Apps Used
Workflow JSON
{
"id": "703a3387-6955-4f65-b09a-3b9976970265",
"name": "Automate Telegram Sticker Responses with n8n",
"nodes": 16,
"category": "Operations",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 703a3387-6955...
About the Author
DevOps_Master_X
Infrastructure Expert
Specializing in CI/CD pipelines, Docker, and Kubernetes automations.
Statistics
Related Workflows
Discover more workflows you might like
Universal CSV to JSON API Converter
Effortlessly transform CSV data into structured JSON with this versatile n8n workflow. Integrate it into any application as a custom API endpoint, supporting various input methods including file uploads and raw text.
Instant WooCommerce Order Notifications via Telegram
When a new order is placed on your WooCommerce store, instantly receive detailed notifications directly to your Telegram chat. Stay on top of your e-commerce operations with real-time alerts, including order specifics and a direct link to view the order.
On-Demand Microsoft SQL Query Execution
This workflow allows you to manually trigger and execute any SQL query against your Microsoft SQL Server database. Perfect for ad-hoc data lookups, administrative tasks, or quick tests, giving you direct control over your database operations.