{"id":50729125,"url":"https://github.com/nishuldhakar/auto-forward-bot","last_synced_at":"2026-06-10T07:01:56.629Z","repository":{"id":361109224,"uuid":"1253007795","full_name":"NishulDhakar/Auto-forward-bot","owner":"NishulDhakar","description":"Forwards messages across Telegram channels with filters, scheduling, and role-based access","archived":false,"fork":false,"pushed_at":"2026-06-06T04:30:40.000Z","size":5913,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-06T06:08:57.725Z","etag":null,"topics":["telegram","telegrambot","telegrambot-python","telegrambotapi"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NishulDhakar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-29T04:33:29.000Z","updated_at":"2026-06-06T04:30:44.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/NishulDhakar/Auto-forward-bot","commit_stats":null,"previous_names":["nishuldhakar/auto-forward-bot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NishulDhakar/Auto-forward-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NishulDhakar%2FAuto-forward-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NishulDhakar%2FAuto-forward-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NishulDhakar%2FAuto-forward-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NishulDhakar%2FAuto-forward-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NishulDhakar","download_url":"https://codeload.github.com/NishulDhakar/Auto-forward-bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NishulDhakar%2FAuto-forward-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34140776,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["telegram","telegrambot","telegrambot-python","telegrambotapi"],"created_at":"2026-06-10T07:01:55.572Z","updated_at":"2026-06-10T07:01:56.620Z","avatar_url":"https://github.com/NishulDhakar.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Auto Forward Bot Pro\n\n![Welcome](images/welcome.png)\n\nA production-ready Telegram bot that acts as your personal automated forwarding assistant. Built with **python-telegram-bot v20+**, **Telethon** (Userbot), and **Supabase**, this bot offers role-based access control, real-time message forwarding from both public and private channels, advanced dynamic text filters, message scheduling, and an integrated premium subscription system.\n\n---\n\n## 🌟 Key Features\n\n| Feature | Details |\n|---|---|\n| 🔁 **Real-time Forwarding** | Forward all message types instantly. Supports both **Public** and **Private** source channels using an integrated Userbot system! |\n| 🔍 **Dynamic Text Filters** | Automatically replace *any* link or *any* username in a message with your own, or define specific find/replace text rules and blocked words. |\n| ⏰ **Scheduling** | Schedule messages to be sent one-time or daily. Supports IST (Indian Standard Time) and UTC formats natively. |\n| 💳 **Integrated Payments** | Automated Razorpay integration and Crypto (USDT) support. Users can upgrade to Premium seamlessly inside the bot via `/pro`. |\n| 👥 **Role \u0026 Trial System** | Trial users are prompted to upgrade. Admins gain access to forwarding capabilities. Super Admin can manage all users. |\n| ⚡ **Auto-Demotion** | The bot checks for expired subscriptions continuously and demotes admins automatically. |\n\n---\n\n## 📖 How to Use (Step-by-Step)\n\nThe bot comes with a built-in interactive `/help` menu to guide users. Here is how the core features work:\n\n### 1. Link Your Account (`/howtoauth`)\nTo forward messages from private channels, the bot securely links to your Telegram account.\n![Authorization](images/auth.png)\n- Run `/authorize` and provide your phone number (e.g., `+91...`).\n- Submit the 5-digit OTP sent by Telegram (use a hyphen like `12-345` for security).\n\n### 2. Set Up Forwarding (`/howtoaddforwarding`)\n![Set Forwarding](images/set_forwarding.png)\n- Run `/addsource` and provide the channel username or ID to copy *from*.\n- Run `/addtarget` to specify where messages should be forwarded *to*. You can add multiple targets!\n\n### 3. Set Up Dynamic Filters (`/howtosetfilter`)\n![Filters](images/filter.png)\n- Run `/filter` to open the interactive menu.\n- Choose to instantly replace **Any Link**, **Any Username**, or set up custom word replacements and blocks. \n\n### 4. Schedule Messages (`/howtoschedule`)\n![Schedule](images/schedule.png)\n- Run `/schedule`, provide your content, and set a time (e.g., `14:30`, `12:00 PM`, `05:30 PM IND`).\n- Choose whether it should repeat daily or run just once.\n\n### 5. Upgrade to Premium (`/howtopro`)\n![Premium](images/pro.png)\n- Run `/pro` to view subscription plans.\n- Pay via INR (UPI/Razorpay) or Crypto (USDT) and confirm payment directly inside the bot.\n\n---\n\n## ⚙️ Setup \u0026 Installation\n\n### 1. Clone and install dependencies\n```bash\ngit clone https://github.com/yourusername/auto-forword-bot.git\ncd auto-forword-bot\npython -m venv venv\nsource venv/bin/activate    # Windows: venv\\Scripts\\activate\npip install -r requirements.txt\n```\n\n### 2. Configure environment variables\n```bash\ncp .env.example .env\n```\nEdit `.env` with your values:\n```env\nBOT_TOKEN=your_bot_token_here         # From @BotFather\nTELEGRAM_API_ID=1234567               # From my.telegram.org\nTELEGRAM_API_HASH=your_api_hash       # From my.telegram.org\nSUPABASE_URL=https://xxx.supabase.co  # Your Supabase project URL\nSUPABASE_KEY=your_supabase_key_here   # anon or service_role key\nSUPER_ADMIN_ID=123456789              # Your Telegram user ID\nRAZORPAY_KEY_ID=optional_key          # For automated INR payments\nRAZORPAY_KEY_SECRET=optional_secret\n```\n\n### 3. Set up Supabase Database\n1. Open your [Supabase project](https://supabase.com) → SQL Editor\n2. Run the provided `supabase_schema.sql` script to create the tables.\n\n### 4. Run the Bot\n```bash\npython3 -m bot.main\n```\n\n---\n\n## 🛠 Commands Reference\n\n### Super Admin (`SUPER_ADMIN_ID`)\n| Command | Description |\n|---|---|\n| `/stats` | View total admins, channels, and income statistics |\n| `/alladmins` | List all premium admins and their expiration dates |\n| `/allchannels` | List all active source and target channels |\n| `/addadmin` | Manually promote a user to Admin status |\n| `/removeadmin` | Demote an admin immediately |\n| `/grant_premium` | Quick command to grant premium to a specific user ID |\n\n### Admin (Premium Features)\n| Command | Description |\n|---|---|\n| `/authorize` | Link Telegram account (Required for Userbot) |\n| `/addsource` | Set the channel to monitor and forward messages from |\n| `/addtarget` | Add a destination channel to forward messages to |\n| `/filter` | Add text filters, link replacers, or block words |\n| `/myfilters` | View and remove active filters |\n| `/schedule` | Schedule a message to be sent to targets |\n| `/removeschedule`| View and cancel scheduled messages |\n| `/mystatus` | Check account authorization and subscription expiry |\n\n### General Users\n| Command | Description |\n|---|---|\n| `/start` | Welcome message and initial registration |\n| `/help` | Interactive step-by-step image tutorials |\n| `/pro` | View premium subscription plans and purchase |\n| `/plan` | View current trial or subscription status |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnishuldhakar%2Fauto-forward-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnishuldhakar%2Fauto-forward-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnishuldhakar%2Fauto-forward-bot/lists"}