Telegram AI Workflow

Hello,

I’m trying to create a workflow that reads messages from a Telegram group whenever someone sends a new message. My plan is to store these messages in a Pinecone database, along with the username and filter options to remove unwanted text.

Then, I want to parse the data for the most up-to-date information and implement a rotating system to remove older entries. The newest files would be kept in a Google Drive folder for live storage. Finally, this information should be used to feed my existing Telegram bot with a dataset (based on Telegram chats) sourced from the Pinecone database.

However, I’m having trouble finding documentation on how to achieve this specifically with Telegram and n8n. Is this type of workflow supported by any trigger event in n8n?

Debug info

core

  • n8nVersion: 1.78.1
  • platform: docker (self-hosted)
  • nodeJsVersion: 20.18.2
  • database: sqlite
  • executionMode: regular
  • concurrency: -1
  • license: enterprise (production)
  • consumerId: 106e974d-f356-4383-89f8-79cab3896595

storage

  • success: all
  • error: all
  • progress: false
  • manual: true
  • binaryMode: memory

pruning

  • enabled: true
  • maxAge: 336 hours
  • maxCount: 10000 executions

client

  • userAgent: mozilla/5.0 (x11; linux x86_64) applewebkit/537.36 (khtml, like gecko) chrome/133.0.0.0 safari/537.36
  • isTouchDevice: false

Generated at: 2025-02-18T23:26:11.229Z