⏊
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
  • Blacklist: Block Messages Based on Words, Patterns, or Users
  • How It Works
  • 1. Accessing the Blacklist Feature
  • 2. Create Blacklist Rule
  • 3. Blacklist Types
  • 1. Basic Blacklist
  • 2. Regex Blacklist
  • 3. Blacklist By User (Platinum Plan Only)
  • 4. Apply/Disable Blacklist For a Task
  • 5. Tips for Using Blacklist
  • Why Use Blacklist?
  1. Fundamentals
  2. Blacklist: Create And Management

Blacklist On Mobile App/WebApp

PreviousBlacklist: Create And ManagementNextReplace : Create And Management

Last updated 4 months ago

Here is the Blacklist documentation based on the structure and details provided for the Whitelist feature:


Blacklist: Block Messages Based on Words, Patterns, or Users

The Blacklist feature allows you to define a list of blocked users, groups, or channels whose messages will not be forwarded. This ensures that unwanted content from specific sources is excluded from the forwarding process, helping you maintain control and relevance in message flow.


How It Works

  • When you add a user, group, or channel to the Blacklist, their messages will be blocked.

  • Messages from sources on the Blacklist will not be forwarded.

  • If no Blacklist is set up, messages from all sources will be forwarded (unless other filters like Whitelist are applied).


1. Accessing the Blacklist Feature

On Mobile App

  1. Open the .

  2. Go to the Dashboard.

  3. Tap on the Blacklist icon.


On Web Dashboard

  1. In the left-hand menu under Features, click on Blacklist.


Next Step

Tap on the Add New button to create a new Blacklist rule.


2. Create Blacklist Rule

Options for Blacklist Type

You can choose one of the following Blacklist Types:

  1. Basic: Add simple words or phrases to the Blacklist.

  2. Regex: Use Regular Expressions (Regex) for advanced filtering.

  3. Blacklist By User: Block messages from specific users.


Steps to Create a Blacklist Rule

1. Enter a Label

  • Add a Label to identify your Blacklist rule.

  • Example: block_words, remove_links.

2. Select Blacklist Type

  • Basic: Enter one or more words (separate them with commas).

    • Example: spam,ad,unwanted.

  • Regex: Use a regex pattern for advanced filtering.

    • Example: \bunwanted\b (matches the word "unwanted" fully).

  • Blacklist By User: Add usernames or user IDs to block specific senders.

3. Full Content (Optional)

  • Paste the original content to test or match against the rule.

4. Apply to Tasks (Optional)

  • In the Apply For Task field, select a specific task if needed.

5. Save the Rule

  • Tap Create Blacklist to save and activate the rule.


3. Blacklist Types

1. Basic Blacklist

The Basic Blacklist allows you to block messages containing specific words or phrases.

Steps to Use

  1. Go to Blacklist → Tap Add New.

  2. Select Basic in the Blacklist Type dropdown.

  3. Add the words/phrases to the Content Blacklist field.

  4. Tap Create Blacklist to save.


Example Scenarios

  1. Block messages containing "spam" or "ad"

    • Content Blacklist: spam,ad

    • Example Message:

      This is a spam message with an ad.  
    • Result: Blocked ❌

  2. Block messages containing "promotion" or "unsubscribe"

    • Content Blacklist: promotion,unsubscribe

    • Example Message:

      Check out our latest promotion! Unsubscribe anytime.  
    • Result: Blocked ❌


2. Regex Blacklist

The Regex Blacklist is used for advanced matching. It allows you to use Regular Expressions to block messages based on patterns.

Steps to Use

  1. Go to Blacklist → Tap Add New.

  2. Select Regex in the Blacklist Type dropdown.

  3. Enter the Regex pattern in the Content Blacklist field.

  4. Tap Create Blacklist to save.


Combine Conditions with AND/OR

  • AND Condition: All specified conditions must be met.

  • OR Condition: Any one of the specified conditions must be met.

What are AND and OR Conditions?

  1. AND Condition:

    • Ensures that all specified conditions must be met for a message to be blocked.

    • Example: A message must contain "buy" and "cheap" to be blocked.

  2. OR Condition:

    • Ensures that any one of the specified conditions is met for a message to be blocked.

    • Example: A message must contain "spam" or "ad" to be blocked.

How to Add AND/OR Conditions

  1. Add an AND Condition:

    • Tap the + AND button to add another condition that must also be met.

    • Example: After entering buy, add cheap.

    Result: Messages containing both "buy" and "cheap" will be blocked.

  2. Add an OR Condition:

    • Tap the + OR button to add another condition where either can be met.

    • Example: After entering spam, add ad.

    Result: Messages containing either "spam" or "ad" will be blocked.


Example Scenarios

  1. Block messages containing links

    • Regex Pattern:

      (http|https|www)\S+  
    • Example Message:

      Visit https://example.com for more info.  
    • Result: Blocked ❌

  2. Block messages containing "scam" or "fraud"

    • Regex Pattern:

      (scam|fraud)  
    • Example Message:

      This is a fraud alert.  
    • Result: Blocked ❌

  3. Block messages containing both "buy" and "cheap"

    • Regex Pattern:

      ^(?=.*\bbuy\b)(?=.*\bcheap\b).*  
    • Example Message:

      Buy this product for a cheap price!  
    • Result: Blocked ❌

Example Scenarios Combine Multiple AND/OR Conditions

  1. Block Messages Containing Both "buy" and "cheap"

    • Condition:

      • Content Blacklist: buy

      • Add Condition: + AND → cheap

    • Example Message:

      kotlinSao chÊp mÃŖBuy this product for a cheap price!  
    • Result: Blocked ❌

  2. Block Messages Containing Either "spam" or "ad"

    • Condition:

      • Content Blacklist: spam

      • Add Condition: + OR → ad

    • Example Message:

      csharpSao chÊp mÃŖThis is a spam message with an ad.  
    • Result: Blocked ❌

  3. Combine Multiple AND/OR Conditions

    • Condition:

      • Content Blacklist: buy

      • Add Condition: + AND → cheap

      • Add Condition: + OR → scam

    • Example Messages:

      • Buy this product for a cheap price!: Blocked ❌

      • This is a scam message: Blocked ❌

      • Buy now: Not Blocked ✅


3. Blacklist By User (Platinum Plan Only)

The Blacklist By User feature allows you to block messages from specific users, channels, or groups.


How to Use Blacklist By User

  1. Use the /getid command to find the User ID of the sender.

    • Example:

      /getid  
      âžĄī¸ User ID: 123456789  
  2. Go to Dashboard → Tap on Blacklist → Add New.

  3. Select Blacklist By User as the Blacklist Type.

  4. Enter the User ID (e.g., 123456789) or the Username (e.g., @blocked_user).

  5. Tap Create Blacklist to save the rule.


Example Scenario

  • Use Case: Block messages from a spammer.

  • Content Blacklist: 123456789 or @spammer_user.

  • Result: Messages from the user will be blocked.


4. Apply/Disable Blacklist For a Task

Steps

  1. From the Dashboard, select the Blacklist feature.

  2. Locate the Blacklist rule you want to manage.

  3. Tap on the rule to open the popup window.

Options

  1. Activate/Deactivate For Task: Enable or disable the rule for a specific task.

  2. Apply For All Tasks: Apply the rule globally across all tasks.

  3. Edit Blacklist: Update keywords, regex patterns, or user IDs.

  4. Delete: Permanently remove the rule.


5. Tips for Using Blacklist

  • Use Basic for simple word-based filtering.

  • Use Regex for complex patterns like URLs, mentions, or phrases.

  • Regularly review and update Blacklist rules for optimal performance.


Why Use Blacklist?

  • Prevents unwanted content from being forwarded.

  • Blocks spam and irrelevant messages.

  • Ensures better control over message forwarding.


With the Blacklist feature, you can effectively block messages based on words, patterns, or specific senders, ensuring only relevant content is forwarded. 🚀

Log in to the Dashboard.

Test Regex patterns using .

🔴
Auto Forward mobile app
Auto Forward Web
regex101.com