Skip to content

SudoR2spr/Auto-Forward-User-Bot

Repository files navigation

🔄 Auto Forward Bot - Features & Commands Guide

We’ve added several useful features and commands to help you control the bot better. Here's the complete list:

✅ Features & How to Use:

  1. Auto Forwarding
    Automatically forwards messages from the source chat to the target chat without the “forwarded from” tag.

  2. Duplicate Prevention
    Already forwarded messages will not be forwarded again.

  3. Delay System
    Set a custom delay (in seconds) between forwarded messages using the line no 23

    • Usage: setdelay DELAY_SECONDS = 5
  4. Status Check
    See bot’s current status, Active ✅, and inactive/status.

  5. 👉 All commands list 🌟

    ``` /status 
     ⚡️ View bot status  
    
     /setdelay [Sec] 
     ⏱️ Set the delay time.
    
     /addadmin
     ✅ User 1213456789 added as admin.
    
     /removeadmin
     ❌ User 1213456789 removed from admins.
    
     /skip 
     🛹 Skip to next message  
    
     /resume 
     🏹 Start forwarding  
    
     /on 
     ✅ Launch the bot   
    
     /off 
     📴 Close the bot 
    
     /addtarget [ID] 
     ✅ Add target  
    
     /removetarget [ID] 
     😡 Remove target  
    
     /listtargets 
     🆔 View Target ID
    
     /noor /noor
     👀 Shows a detailed status report including:
    
     /count
     📊 Total Forwarded Files
    
     /restart  
     ♻️ Restarts the bot safely.```
    

🚀 Deployment

Set environment variables

✅ Telegram API credentials

  • API_ID=667788990
  • API_HASH=wwq8325ba83751dfade998899988gh
  • SESSION_STRING=1BtsOGkBu4xsJ0-hjlJkH30Iaz-1Trsdqki61DAhYZz0Dcp1wdk=

🆔 Telegram channel/chat IDs

  • SOURCE_CHAT_ID=-1001234567890
  • TARGET_CHAT_ID=-1002888859999

🔗 MongoDB connection URI

  • MONGO_URI=mongodb+srv://woodcraft:angellol@cluster0-&appName=Cluster0

👤 Bot admin user IDs (comma-separated if multiple)

  • DEFAULT_ADMINS=123456789

🌄 Image URLs (can be used in bot responses)

🚀 Server port

  • PORT=8080

🔧 Session String Generator 🔗 Telethon Session String Generat

🌐 Supported ⚡️ koyeb

Deploy On Koyeb

Deploy To Heroku

Deploy to Heroku

🌐 Web Interface:

A small Flask server is running in the background. If you open the hosted URL, you’ll see:

🤖 Activate the Angel bot!

Need more help? Just message the Repo Owner. 𝐖𝐎𝐎𝐃𝐜𝐫𝐚𝐟𝐭


  • Contact Me On Telegram

📅 Last Update 🔄 On: 24/04/2025