Hi, I state that my level is basic.
I would like to filter the content of a channel by a keyword in the caption and then forward it to a second channel.
i use contrib telegram nodes, and have tried with switch nodes to no avail.
Have you started by making sure you can (a) get the messages from the first channel and output to the debug panel, and (b) send a message to channel 2?
You can use a switch node to only pass the ones you want. If it doesn't work then show us what the message looks like and how you have configured the switch.
I have already tried with the node of Switch, But surely wrong configuration. I set msg.payload.caption and in the filters contains string key words. As a second filter I put otherwise. I always get the second exit.
As soon as possible post photos.
If you want to test for the caption starting with # then use Matches regex and for the regex use ^# ^ matches the start of the string, so that will find any strings where the first character is #
EDIT: I just notice you wrote "caption containing #'. The '^#' regex looks for strings starting with '#'. If you want '#' to be anywhere within the caption, use a regex of just '#' (or indeed use 'contains' rather than 'matches regex').
If you use the copy path button next to the caption property, you will find the path is originalMessage.caption
The copy path button appears when you hover the mouse to the right of the property in the debug panel.
so it should be msg.originalMessgae.caption