Comment on page
🌀

Replace : Create And Management

You can set a list of words or regex patterns which tells the bot that if the message received from source channel has any of the replace words or regex pattern match the bot should replace that message with the word you want to change.
This feature will not work if you enable "Show Header Forwarder" in task list

⛳️ Create New Replace

Command
Syntax Example (Simple)
Syntax Example use Regex(Advanced)
➡️ Command Arguments /replace ACTION LABEL Original_WORD -> NEW_WORD ➡️ USE Regex /replace ACTION LABEL_regex Regex_syntax -> NEW_WORD
➡️ Command Information
  • ACTION is add or remove
  • LABEL is the nickname you want to define for your Replace.
  • Do not use number for LABEL.
  • Must use suffix for LABEL is _regex
  • Original_WORD is word you want replace. Check Tab Example
  • NEW_WORD is word will replace. Check Tab Example
Use the syntax as shown below when you want to replace words or full paragraphs. ➡️ Change black to white /replace add re1 black -> white
➡️ Remove keyword black from the message /replace add re1 black -> EMPTY
➡️ Remove keyword do not from the message i do not like black
Use syntax command
/replace add re1 do not -> EMPTY
Result output
i like black
➡️ Change under the moon to on the sun in content Sometimes I lay under the moon
Use syntax command
/replace add re2 under the moon -> on the sun
Result output
Sometimes I lay on the sun
Use the syntax as shown below when you want to achive result that is not possible with the simple syntax. This syntax uses regex to replace words and keywords and you can do everything you want with the message if you know regex.
We do not support usage of regex, you are on your own if you decide to use regex. Only use it if you know what you are doing.
➡️ Change good or perfect to bad /replace add re1_regex (good|perfect) -> bad
➡️ Match every url or @mention and change it to @Auto_Forward_Messages_Bot /replace add re1_regex (@|www|https?)\S+ -> @Auto_Forward_Messages_Bot
➡️ Exam1: Refactor content use regex. Remove "✉️TPA trading report:", "TPA: Entry", "The monitoring will be continued." in content below 👇
✉️TPA trading report:
TPA: Entry BUY UUDCHF M30 at 2023.06.16 15:30
The monitoring will be continued.
Use syntax command
/replace add radim_r2_regex (?:.*)(BUY|SELL)(.*)\n(?:.*) -> \1\2
Result Output
BUY UUDCHF M30 at 2023.06.16 15:30
➡️ Exam2: Refactor content use regex. Change all "Take profit (1|2|3)👉at" to TP in content below 👇
🚨Signal Alert🚨
GOLD sell at (@ 1966.40)
Take profit 1👉at 1955.35
Take profit 2👉at 1938.94
Take profit 3👉at 1918.62
Stop loss at 1982.45
🎯Chance of success: 83%
⚠️Risk 1-2% per trade!
Use syntax command
/replace add changeTP_regex ^(Take\s*profit\s*\d(?:➡️|👉)at) -> TP
Result Output
🚨Signal Alert🚨
GOLD sell at (@ 1966.40)
TP 1955.35
TP 1938.94
TP 1918.62
Stop loss at 1982.45
🎯Chance of success: 83%
⚠️Risk 1-2% per trade!
➡️ Exam 3: Refactor content use regex. Change all to new format in content below 👇
Content Original
🔥 #RDNT/USDT (Long📈, x20) 🔥
Entry - 0.2483
SL - 25-30%
Take-Profit:
🥇 0.2534 (40% of profit)
🥈 0.256 (60% of profit)
🥉 0.2586 (80% of profit)
🚀 0.2614 (100% of profit)
Use syntax command
/replace add re_signal_regex (?:.*\#)(.*)\s+(?:.*Long.*\,\s+(\w+)(?:.*))\n+(?:Entry.*)\s+(\d+.?\d+)\s+(?:SL.*\-)(?:.*)\s+(\d+\-\d+)(?:\%)\n+(?:.*:)\n(?:.*)\s+(\d+.?\d+)(?:.*)\n(?:.*)\s+(\d+.?\d+)(?:.*)\n(?:.*)\s+(\d+.?\d+)(?:.*)\n(?:.*)\s+(\d+.?\d+)(?:.*) -> \1 Binance futures\nLEVERAGE CROSS \2\nBUY \3\nSELL: \5 \6 \7 \8\nSTOP: \4%
Result Output
RDNTUSDT Binance futures
LEVERAGE CROSS 20X
BUY 0.2483
SELL: 0.2534 0.256 0.2586 0.2614
STOP: 25%

☯️ Create New Replace Use ShortCode

➡️ USE Combine with ShortCode
➡️ Command Arguments /replace ACTION LABEL Original_WORD -> NEW_WORD
Original_WORD is word you want replace. You can use ShortCode:
[[FULL_TEXT]] if you want take full content in message source
NEW_WORD is word will replace. You can combine with ShortCode:
[[ORIGIN_USERNAME]] if you want to replace with the sender username
[[ORIGIN_USERID]] if you want to replace with the sender userid
[[ORIGIN_TEXT]] if you want to replace with original content.
[[ORIGIN_NAME]] if you want to replace with the sender name or name original channel.
[[ORIGIN_POST_ID]] if you want replace with Post ID origin.
[[ORIGIN_CHAT_ID]] if you want replace with CHAT ID origin.
[[ORIGIN_QUOTED_TEXT]] if you want to replace with the original post's QUOTED TEXT.
[[ORIGIN_NAME_URL]] if you want to replace with the original link.
[[FROM_USER]] if you want to replace with the username of sender.
[[SOURCE_NAME]] if you want to replace with forward source name.
[[SENDER_CHAT]] if you want to replace with name display of sender.
[[FORWARD_FROM_CHAT]] if you want to replace with message owner name
❇️ Example:
Use the syntax as shown below when you want to replace words or full paragraphs. Hello. How are you? ➡️ Change full content Hello. How are you? to Hi /replace add re1[[FULL_TEXT]] -> Hi
➡️ Change Hello. How are you? to original content + Signature Source /replace add re1 [[FULL_TEXT]] -> [[ORIGIN_TEXT]]- by [[SOURCE_NAME]]

📝 Remove Lines Use Replace

This feature is used to remove lines from the message. You will use keywords to check message lines and if a keyword or one of the keywords (if multiple) is found on the line, AutoForward will remove that line from the final result.
Command
Example
➡️ USE command /replace ACTION LABEL_rmline Keywords -> EMPTY
➡️ Command Information
  • ACTION is add or remove
  • LABEL is the nickname you want to define for your Replace.
  • Do not use number for LABEL.
  • Must use suffix for LABEL is _rmline
  • Keywords is word you want found on the line and remove that line. Check Tab Example
➡️ Content Original:
24/11/23 | Market Execution
Notes:
📉BUY limit XAUUSD at 1994
Stop Loss 1990
Take Profit 1 at 2000
Take Profit 2 at 2006
Take Profit 3 at 2026
•APPROPRIATE risk size 1%
/replace add re1_rmline Market,Notes,risk size -> EMPTY
➡️ Result Final: Remove line have keyword "Market" , line have keyword "Notes" and line have keyword "risk size".
📉BUY limit XAUUSD at 1994
Stop Loss 1990
Take Profit 1 at 2000
Take Profit 2 at 2006
Take Profit 3 at 2026

✅ Apply/Disable Replace For a Task

1. From Auto Forward Messages BOT Choose Task you want Apply
2. Select 🔐 Advanced Configuration from Menu Setting
3. Select Replace from Menu Advanced Configuration to show list replace
4. Click a your replace you want to Activate or Deactivate for Task
Describe Status
🚫 is status Deactivated
is status Activated
Apply Replace For Task

✅ Apply/Disable Replace For All Task

When Apply All Replace for Task will won't activate for each single task
Use command /replace after select Show All Replace

✅ Remove All Replace

Use command /replace after select CLEAR ALL
Remove all replace

Regex Magic: Beyond Your Imagination | Replace Advanced Feature