# telegram-bot > Manage Telegram ingestion bot, process captures, handle L24 strategy analysis, and manage content queue. Use when working with Telegram content capture, analyzing captured URLs, or managing the ingestion pipeline. - Author: Shawn Garland - Repository: shawngarlandgit/neuro-pipeline - Version: 20260129223835 - Stars: 0 - Forks: 0 - Last Updated: 2026-02-06 - Source: https://github.com/shawngarlandgit/neuro-pipeline - Web: https://mule.run/skillshub/@@shawngarlandgit/neuro-pipeline~telegram-bot:20260129223835 --- --- name: telegram-bot description: Manage Telegram ingestion bot, process captures, handle L24 strategy analysis, and manage content queue. Use when working with Telegram content capture, analyzing captured URLs, or managing the ingestion pipeline. --- # Telegram Bot Skill ## Overview The Telegram Ingestion Bot captures content (YouTube, Reddit, articles, text) and runs L24 Strategy Analyst to score fit for your brands. ## Start the Bot ```bash # Run in foreground (for testing) node api/services/telegram-ingestion-bot/index.js # Run as background task node api/services/telegram-ingestion-bot/index.js & ``` ## Content Flow ``` Telegram Message → URL Detection → Content Extraction → L24 Analysis → Action Buttons ``` ### Supported Content Types - **YouTube**: Transcribes video, extracts quotes/insights - **Reddit**: Extracts post content and comments - **Articles**: Scrapes and summarizes web pages - **Text**: Processes plain text snippets ## L24 Strategy Analyst Scores content fit (0-100) and recommends action: | Score | Recommendation | Action | |-------|---------------|--------| | 80+ | GOLD | High-priority content for immediate use | | 50-79 | MAYBE | Worth saving, needs evaluation | | <50 | ARCHIVE | Low fit, auto-archive | ### Run L24 Analysis Manually ```bash # Analyze specific capture node api/services/l24-strategy-analyst/index.js analyze # Batch analyze pending node api/services/l24-strategy-analyst/index.js batch 20 --dry-run # Show GOLD captures only node api/services/l24-strategy-analyst/index.js gold # Statistics node api/services/l24-strategy-analyst/index.js stats ``` ## Telegram Actions When content is captured, action buttons appear: - **Create Content**: Queue for L6 content generation - **Save for Later**: Mark for future use - **Create Product**: Add to product queue (if has product ideas) - **Archive**: Mark as archived ## Database Tables | Table | Purpose | |-------|---------| | `telegram_captures` | All captured content | | `content_queue` | Content queued for processing | | `product_queue` | Products to generate | ## Check Captures ```bash # Recent captures node -e "import('./api/services/shared/supabase-client.js').then(m => m.getSupabaseClient().from('telegram_captures').select('id, capture_type, fit_score, l24_status, created_at').order('created_at', {ascending: false}).limit(10).then(r => console.table(r.data)))" # GOLD captures only node -e "import('./api/services/shared/supabase-client.js').then(m => m.getSupabaseClient().from('telegram_captures').select('id, title, fit_score').gte('fit_score', 80).order('fit_score', {ascending: false}).limit(20).then(r => console.table(r.data)))" ``` ## Key Files | File | Purpose | |------|---------| | `api/services/telegram-ingestion-bot/index.js` | Main bot entry point | | `api/services/telegram-ingestion-bot/message-router.js` | Routes messages to handlers | | `api/services/telegram-ingestion-bot/youtube-handler.js` | YouTube processing | | `api/services/telegram-ingestion-bot/link-handler.js` | Reddit/article processing | | `api/services/l24-strategy-analyst/index.js` | Fit scoring engine | ## Environment Variables ```bash TELEGRAM_INGEST_BOT_TOKEN=... # Ingestion bot token TELEGRAM_BOT_TOKEN=... # Approval bot token TELEGRAM_CHAT_ID=... # Your chat ID ```