Telegram Bot with Menu-Driven Commands
    100%
    Automation
    0(0 reviews)
    1900 downloads

    Telegram Bot with Menu-Driven Commands

    NM

    Curated by n8n Markets team

    Last updated: March 8, 2026

    This template provides a structured way to build Telegram bots that respond to specific commands and handle user input. It allows users to interact with your bot by selecting options from a Telegram bot menu, *without* needing to type out full instructions or rely on conversational AI. This approach offers precise control and predictable behavior for command-driven interactions. Key Features: * 🤖 Structured Command Handling: Unlike approaches that rely on conversational AI (like the "AI Agent" node), this template provides a *deterministic* way to handle specific commands triggered by users selecting options from a Telegram bot menu. Users do *not* need to write out full instructions. * ➕ Command-Based Interaction (Extensible): Ready to process three commands (`/command1`, `/command2`, `/command3`), and easily extensible to support additional commands. * 🚦 Clear Command Routing: Employs `Switch` nodes to efficiently route execution based on both the initial command and the current conversation state. * 💬 Content Requesting: Prompts the user to provide content after a command is received. This is handled by dedicated `Telegram` nodes. * 🛠️ Easy Customization: Includes placeholder (`No Operation, do nothing`) nodes where you can easily insert your own custom processing logic for each command. Why This Template is Unique: n8n currently lacks a native, built-in mechanism for handling individual Telegram commands in a structured, non-conversational way. Many users resort to "AI Agent" nodes, which are designed for open-ended conversations. This template fills that gap by providing a framework for: * ✅ Predefined Commands: Users interact with your bot through a menu of predefined commands, eliminating the need for complex natural language processing. * 🧠 Deterministic Behavior: The workflow's response is predictable and directly tied to the selected command, unlike AI-driven approaches where responses can be less consistent. * 🖱️ Simplified Interaction: Users simply click a button in the Telegram menu, making the interaction intuitive and user-friendly. How to Use: 1. Initialization (One-Time): Execute the "Temp to Initiate Static Data" node *once* to create the necessary `telegramStates` object in the workflow's static data. This is crucial for state management. 2. Customize Processing Logic: Replace the `NoOp` nodes (`Command1 processing`, `Command2 processing`, `Command3 processing`) with your own nodes to handle the content received for each command. *It is highly recommended to add input validation within your processing logic.* 3. Telegram Credentials: Configure the `Telegram Trigger` and `Telegram` nodes with your bot's API token. Example Use Case: This template is ideal for creating bots that require a command followed by specific input, such as: * 📊 Data Collection: A command to initiate a form, followed by a request for the data. * 🛠️ Service Requests: A command to request a service, followed by a request for details. * 📚 Interactive Tutorials: A command to start a tutorial, followed by a request of completion.

    What's Included

    • Complete n8n workflow template with 0 nodes. Ready to import and customize.

    Requirements

    n8n instance (self-hosted or cloud). credentials.

    How to Use

    1. Download the workflow JSON 2. Import into your n8n instance 3. Configure credentials for 4. Activate and enjoy automation

    Apps in this n8n workflow

    How to import this template into n8n

    1. Download the workflow JSON file from this page.
    2. In n8n, open Workflows, create a new workflow and choose Import from File.
    3. Open each node that shows a warning and connect your own credentials.
    4. Run the workflow once manually to check the output before you activate it.
    Included in Pro
    • Importable n8n workflow JSON file
    • Download with Builder Pro or Agency Unlimited
    • Built for n8n v1.0++
    • Setup time: 5-15 min

    Included in Builder Pro — $19/mo, 4,177 premium workflows

    Before you activate

    Templates are reviewed before they are listed. Test with your own credentials and data before running it in production.

    Updated Mar 2026
    v1.0
    SSL
    Secure
    GDPR

    100% Secure Checkout

    Refund requests within 7 days of a new subscription

    Reviews

    0

    No reviews yet

    See all 0 reviews ↓
    —

    0 reviews

    5★
    0
    4★
    0
    3★
    0
    2★
    0
    1★
    0

    No reviews yet.

    Questions & Answers

    0

    Log in to ask a question.

    No questions yet. Be the first to ask!

    People Also Bought