⏊
Auto Forward Telegram Messages
  • Guides
    • 😍Welcome to Auto Forward Messages Telegram Bot!
    • 💡Commands Arguments Meaning
    • đŸ“ļHow to connect?
    • â„šī¸Get information channels, groups, your account
    • đŸ’ĢHow To Setup New Task Auto Forward
  • Fundamentals
    • đŸ› ī¸How To Settings For Task
      • [Only App] Debug Mode For Task
      • Apply Replace For Task
      • Apply Blacklist For Task
      • Apply Whitelist For Task
      • Filters
      • Cleaner
      • Delay For Targets
      • Delay For Source
      • Watermark
      • Add Header / Footer
      • Scheduler Power On/Off
      • Convert Buttons To Text
      • Process To Raw Text
      • Auto Post Scheduler
      • Crypto Filters
      • Translate Language
    • đŸ’ŦSetup Topics For Task
    • đŸ’ģSystem Settings
    • ✅Whitelist: Create And Management
      • Whitelist On Mobile App/WebApp
    • 🔴Blacklist: Create And Management
      • Blacklist On Mobile App/WebApp
    • 🌀Replace : Create And Management
      • Use on Mobile App or WebApp
      • Use Command on Bot Telegram
    • 🌀Replace (Without Commands): Create And Management
    • 🛗Auto Post Scheduler
    • đŸ§™â€â™‚ī¸Filters Users
    • ÂŠī¸Clone Message
    • đŸĒ™MMO Utils
      • đŸ›ī¸Make Money With Amazon
      • 🤝Make Money With Awin1.Com
    • đŸĻ¸Profile Settings
  • 💰Make Money
  • 🆓Auto Forward Messages has a free version ?
  • đŸĻ¸Upgrade Plans Package
  • âĢUpgrade Plan via Android/IOS App
  • 🆙How To Upgrade Current Package?
  • â™Ļī¸How to remove all your personal data?
  • Mobile App
    • 📱How to download App For Mobile
    • 📱How to get UserID and Token for Login App Mobile
    • 🔓How to logout account and login new account on app?
    • 🔄[Mobile App] Replace: Create And Management
  • Extras
    • đŸ”ĻTo Use Replace/Whitelist/Blacklist With Text Formatting Special
    • âŗFAQ
      • 📭 Bot Not Forwarding Messages – How to Troubleshoot
      • Why Do Some Users Get Logged Out When Connecting to the Telegram Bot?
      • Why is my bot experiencing delays when forwarding messages?
      • How to get manual channel, group, user ID?
      • What to do when upgrade fails?
      • Auto Forward Messages has a free version ?
      • How to connect multiple account telegram to Auto Forward Messages BOT?
      • How to NOT get banned from Telegram?
      • How to Recover a Banned Number on Telegram
      • Trick to Continuously Forward Multiple Messages on Telegram
      • Why Telegram Account Limited Error?
      • What if you do not want to login?
      • Why account BANNED?
      • Why do I have to give account access to your bot?
      • Can someone else see my login details?
      • Can I logout without removing my data?
      • Can I remove my details from your server?
      • How to Reset All Config
      • When my task forwards stop working, what can I do?
      • Is there a "Forwarded from" header when copying messages from source chat using this bot?
      • Can the source chat owner know that I am copying messages using this bot?
      • Are all the messages sent on time? Is there any delay in the message?
      • Do I require to keep my internet on when running this bot?
      • Can I forward from a private channel?
      • Does this bot have any message limitation?
      • How to Add text to beginning or end of each message
      • Can I add more features?
      • I found a bug, how can I solve it?
      • Why do I see an "iPhone 8 Plus" device
      • What should you do if you encounter problems with Auto Forward Messages?
    • 📔Change log
    • 📨Contact US
Powered by GitBook
On this page
  • Create New Whitelist
  • 1. Basic Command
  • 2. Advanced Command with regex ( Only Platinum)
  • 4. Combined many Words or Expression regex ( Only Platinum)
  • 5. Filters User use Whitelist ( Only Platinum Plan)
  • Apply/Deactivate Whitelist for Task
  • Remove All Whitelist
  • Video Whitelist
  1. Fundamentals

Whitelist: Create And Management

PreviousSystem SettingsNextWhitelist On Mobile App/WebApp

Last updated 4 months ago

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

**When using regex for spaces, please add a \ character in front or use \s+.

â‡ī¸ 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)

5. Filters User use Whitelist ( Only Platinum Plan)

This feature allows you to forward messages only from specific users that you select. By using a Whitelist, you can specify which users' messages should be forwarded by their USER_ID or USER_NAME.

  1. To use this feature, you'll first need to find the User ID of the users you want to whitelist. Follow these steps:

    • Go to the chat where you want to receive messages from specific users.

    • Use the command /getid in the chat.

    • Note down the User ID that appears. You can then add this User ID to your Whitelist.

Note: To use the /getid command, please make sure you are using a Telegram account that is connected to the AutoForward Telegram Bot.

  1. Next, use the following syntax to create filters based on the whitelist of users:

Syntax
/whitelist [ACTION] [LABEL]_user [USER_ID1,USER_ID2,...,USERNAME1,USERNAME2,...]

Explanation:

  • [ACTION]: The action you want to take (e.g., add, remove, or list).

  • [LABEL]_user: The label you assign to this whitelist (e.g., trusted_user, groupA_user).

  • [USER_ID1,USER_ID2,...]: A list of User IDs.

  • [USERNAME1,USERNAME2,...]: A list of Usernames.

  • You can mix User IDs and Usernames in the same command.

Example Usage:

  • Add multiple users to a whitelist using their User IDs:

    /whitelist add groupA_user 12345678,87654321,23456789
  • Add multiple users to a whitelist using their Usernames:

    /whitelist add vip_user johndoe,janedoe,alice123
  • Add users to a whitelist using both User IDs and Usernames:

    /whitelist add trusted_user 12345678,johndoe,87654321,alice123
  • Add a single user to a whitelist using a User ID:

    /whitelist add staff_user 98765432
  • Add a single user to a whitelist using a Username:

    /whitelist add client_user janedoe

This flexibility allows you to manage your whitelist efficiently, accommodating both User IDs and Usernames as needed.

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

✅
regex101.com
regex101.com
Create new whitelist
Example