n8n Telegram bot starter template setup
Telegram Bot Starter template workflow
provides a foundational setup for creating powerful Telegram bots with n8n. It handles incoming messages, photos, files, and voice notes, making it an excellent starting point for developers looking to create bots for customer engagement, support, or interactive services.
I use n8n to build this workflow.
Key Features:
- Dynamic Message Handling: Respond to text messages, photos, files, and more.
- Modular Design: Easily integrate additional workflows such as user registration, payment modules, or custom commands.
- Error Handling: Ensure the bot gracefully manages errors and user inputs.
Developers looking for a quick way to build and customize Telegram bots.
Businesses and service providers who need customer interaction automation.
Setup Instructions:
- Replace Telegram credentials with your own API credentials.
- Customize responses for different message types (text, photo, file).
- If integrating with external services (like Google Sheets), update the necessary credentials and links.
Extensibility:
This workflow is the base for building any Telegram bot. Additional modules, such as a user registration module, payment integration, and user profile management, are available for easy connection to expand the bot’s functionality.
- ✍🏻Use the Telegram user registration workflow →
- 💵Use the Telegram Payment, Invoicing and Refund Workflow for Stars →
UPDATES:
Sep 25 [BIG UPDATE]:
- Cleaner structure: separate switches for different event types make the workflow easier to extend and maintain.
- Full Telegram event coverage: all update types are routed correctly, so your bot can react to any message or action.
- AI Agent integration: built-in OpenAI + LangChain with short-term memory for smarter, contextual replies.
- Payment ready: invoice and payment handler workflows are preconfigured, reducing setup time.
- Auto-registration flow: /start command automatically registers users, simplifying onboarding.
Sep 24:
- Improved message handler: Updated logic to handle various types of messages using Switch (text, photo, file, voice, and callback).
- Payment processing: Added new nodes for sending invoices and handling payments via Telegram
Aug 24:
- Changed processing of system events: “new user” and ‘user who blocked bot’ events
You'll get access to source code, documentation, installation tutorial and example n8n workflows.