Use Transformations on @multifeed_edge_bot
Telespace Support❗️ This feature is only available on paid tariff plans. Please contact @TelespaceSupport for details
There are several types of transformations available on @multifeed_edge_bot:
- format - for adding your own text before/after the message text
- replacements - for replacing words/phrases in the message text with your own words/phrases
- removeLines - to remove lines of text, containing certain words/characters
- removeWords - to remove certain words/phrases from the text
format -- usage example:
/transformation format 12345 on
[[Message.Text]]
#your_hashtag
Here, starting from the second line we are specifying a template of the message that will be posted to your destination channel.
[[Message.Text]] will be automatically replaced with the actual text of the message that bot receives from your sourcing channel. For example, when sourcing channel posts `Test` text, the following message will be posted to your destination channel (assuming that transformation above is enabled):
Test
#your_hashtag
replacements -- usage example:
/transformation replacements 12345 on
1 - 1️⃣
2 - 2️⃣
- with such replacements settings bot will automatically replace all occurrences of 1 with 1️⃣ and all occurrences of 2 with 2️⃣
Please notice that the command itself and replacements are defined on different lines. Each new replacement is defined on a new line.
removeLines -- usage example:
/transformation removeLines 12345 on
A
B
C
Assuming that our sourcing channel posts message
A123
B123
C123
D123
E123
having the transformation above applied, we'll receive the following message in our destination channel:
D123
E123
As you can see, lines containing characters A, B and C were removed from the message
removeWords -- usage example:
/transformation removeWords 12345 on
fallin'
\nAll
Assuming that our sourcing channel posts message
Snow is fallin'
All around me
Children playin'
Having fun
having the transformation above applied, we'll receive the following message in our destination channel:
Snow is around me
Children playin'
Having fun
As you can see, words fallin' and All (including the line break prior to it -- described as \n in transformation settings above) were completely removed from the message text.
In all examples above -- 12345 here is the numerical id of your redirection. You can get this id from the output of /list command
⚡️ Updates: @TelespaceNews
❓Still have questions? Ask us at: @TelespaceSupport