Hello n8n community,
I’m building a workflow that uses a Telegram trigger and I need to store user session data in PostgreSQL (using Supabase) with the PostgreSQL Memory node or even with Simple Memory. My setup works fine with text messages, but fails when users send images.
Current setup:
- Telegram trigger receiving messages
- PostgreSQL Memory node using Supabase as database
- User ID as the key:
{{ $('Supabase').item.json.user_id }}
The error occurs when trying to save image messages, likely because the message object contains complex nested structures or binary data that can’t be properly serialized.
I cannot modify how the message data is structured before it reaches the PostgreSQL Memory node. Is there a way to:
- Configure the PostgreSQL Memory node to handle image messages correctly?
- Extract only essential data from image messages automatically?
- Set up a different approach for handling both text and image messages within the same workflow?
Any guidance on best practices for storing Telegram message data would be greatly appreciated!
Thank you in advance,


