Generate text & image responses in Telegram channels with GPT-4 and TGPT
Telegram AI Channel Bot - Text & Image Response Generator with TGPT Overview This n8n workflow creates an automated Telegram channel bot that responds to messages with AI-generated text or images using TGPT. The bot m...
Template notes
Telegram AI Channel Bot - Text & Image Response Generator with TGPT
Overview This n8n workflow creates an automated Telegram channel bot that responds to messages with AI-generated text or images using TGPT. The bot monitors a specific Telegram channel and generates responses based on message prefixes.
Features - Automated text response generation using TGPT - Image generation capabilities with customizable dimensions (1920x1080) - Duplicate message prevention - Time-window filtering (15 seconds) to process only recent messages - Continuous polling with 10-second intervals
Setup Instructions
Prerequisites 1. n8n Instance: Ensure you have n8n installed and running 2. Telegram Bot: Create a new bot via @BotFather on Telegram 3. Telegram Channel: Create or have admin access to a Telegram channel 4. Linux Environment: The workflow requires Linux for command execution
Configuration Steps
1. Obtain Telegram Bot Token - Open Telegram and search for @BotFather - Send /newbot and follow the prompts - Save the bot token provided (format: 1234567890:ABCdefGHIjklMNOpqrsTUVwxyz)
2. Get Channel ID - Add your bot as an administrator to your Telegram channel - Send a test message to the channel - Visit: https://api.telegram.org/bot<YOURBOTTOKEN>/getUpdates - Look for "chat":{"id":-100XXXXXXXXXX} - this is your channel ID