🌀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 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

☯ī¸ Create New Replace Use 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 By Keyword 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.

➡ī¸ 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

📝 Remove Lines EMPTY Use Replace

Add command

/replace add removeline_regex \n\n -> EMPTY

📝 Remove Lines By Line Order Use Replace

This feature is used to remove lines from the message. You will use line order, AutoForward will remove that line from the final result.

➡ī¸ USE command /replace ACTION LABEL_removelines lineorder1,lineorder2,.. -> 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 _removelines

  • lineorder1,lineorder2 is line order you want to remove. Check Tab Example

✅ 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/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

Regex Magic: Beyond Your Imagination | Replace Advanced Feature

Last updated