✅Whitelist: Create And Management

You can set a list of words or regex patterns that tell the bot to process message you receive from source channel only if it has at least one of the whitelisted word or regex pattern match. Make sure to use the right syntax by reading the examples below.

Important Information

  • Using Simple Syntax will match words partially. This means that when you whitelist the word "es", it will allow every message containing best, rest, test because each of them have the word "es" within.

  • If you want to match words fully, please use the regex example

  • Make sure to use the Python Flavor with regex101.com otherwise your regex will not work on

  • When this command is used incorrectly, it will cause redirections to stop working. Always make sure you use the right syntax when using whitelist and do use regex only if necessary. Make sure you build your regex with regex101.com before inserting them into Auto Forward Bot.

Create New Whitelist

1. Basic Command

/whitelist [ACTION] [LABEL] [WORD_LIST]

Command Information

  • ACTION is add or remove

  • LABEL is the nickname you want to define for your Whitelist.

  • Do not use number for LABEL.

  • WORD_LIST is list word you want use as whitelist. Check Example

❇ī¸ Example ❇ī¸

➡ī¸ Only messages containing hello characters will be forwarded: /whitelist add white1 hello

➡ī¸ Only messages containing hello characters will be forwarded: /whitelist add white1 hello

➡ī¸ Only messages containing cat or dog or chicken characters will be forwarded: /whitelist add white1 cat,dog,chicken

➡ī¸ Remove word list with label white1 /whitelist remove white1

➡ī¸ Show all list Whitelist /whitelist

2. Whitelist use USER_ID or USER_NAME ( Only Platinum)

Syntax
/whitelist [ACTION] [LABEL]_user [USER_ID,USER_NAME]

Note:

  • Set Label Name must have a suffix is _user

  • You can add multiple whitelists separated by ,

❇ī¸ Example ❇ī¸

You want whitelist User have username is https://t.me/zinREAL, https://t.me/mark and User have id is 410995490

/whitelist add group1_user zinREAL,410995490,mark

3. Advanced Command with regex ( Only Platinum)

Use the syntax as shown below when you want to achieve result that is not possible with the simple syntax. This syntax uses regex to search for words and its more powerful than Simple Syntax.

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.

Syntax
/whitelist [ACTION] [LABEL]_regex [WORD_LIST]

Command Information

  • ACTION is add or remove

  • LABEL is the nickname you want to define for your Whitelist.

  • Do not use number for LABEL.

  • To create whitelist advance with regex please add LABEL suffix is _regex

  • WORD_LIST is list word you want use as whitelist

❇ī¸ Example ❇ī¸

➡ī¸ Process messages only if it has the any @mention word on it. /whitelist add white1_regex @\S+

➡ī¸ Process messages only if it has any "telegram links" /whitelist add white2_regex (telegram.me|t.me)/\w+

➡ī¸ Process messages only if it has the word black or white /whitelist add white3_regex (black|white)

  • black and white : The words black and white are two words you want forward if have one or both

  • In case you want to match more, you can add more |red|blue in regex

➡ī¸ Process messages only if it has the word es fully (refer to Important Information) /whitelist add white3_regex \bes\b

➡ī¸ Process messages only if it has the word word1 and word2 fully (refer to Important Information) /whitelist add white3_regex ^(?=.\bwork1\b)(?=.\bwork2\b).*$

  • work1 and work2 : The words work1 and work2 are two words you want to have in the forward content

  • In case you want to match more, you can add more (?=.\bwork3\b)(?=.\bwork4\b) in regex

* When add whitelist is ^(?=.\bwork1\b)(?=.\bwork2\b).*$ it will only process messages have contain work1 and work2 like:
  "I have work1 to do and work2 as well."
  "work1 and work2 are both important."
  "work2 is harder than work1."
* Will block if not have both work1 and work2 or only have work1 or work2 like:
  "Only work1 is left."
  "work2 is complete"
  "Nothing to do here."

4. Combined many Words or Expression regex ( Only Platinum)

Syntax
/whitelist [ACTION] [LABEL]_regex [WORD_LIST] ==AND== [WORD_LIST]

Command Information

  • ACTION is add or remove

  • LABEL is the nickname you want to define for your Whitelist.

  • Do not use number for LABEL.

  • To create whitelist advance with regex please add LABEL suffix is _regex

  • WORD_LIST or Expression regex is list word or expression regex you want use as whitelist.

  • ==AND== is the conditional keyword (required)

❇ī¸ Example ❇ī¸

  • ➡ī¸ Process messages only if it has the words black and white /whitelist add whiteAndBlack_regex black==AND==white

    ➡ī¸ Process messages only if it has the word vip1 and vip2 and (vip3 or vip4) /whitelist add vip_regex vip1==AND==vip2==AND==(vip3|vip4)

Apply/Deactivate Whitelist for Task

1. From Auto Forward Messages BOT typing command /whitelist to show list whitelist

2. From your list whitelist choose item whitelist you want apply. Then choose will goto detail whitelist

3. At detail whitelist will show all your task forward

4. Now you can click to task will apply or click apply to all task if want apply for all

Describe Status

Normal status is Deactivate

✅ is status Activated

Remove All Whitelist

⭕ī¸ Use Command /whitelist then select Delete All

Video Whitelist

Last updated