Skip to content

Tamilupdates/KPS-Filter-Bot

Repository files navigation

🚀 KPS Filter Bot ⚡

KPSBots Logo

KPS Filter Bot - Typing SVG

GitHub Forks GitHub Stars GitHub Issues

Telegram Channel

⚡ Ultimate Auto Filter Bot 🚀 For Telegram | Smart, Fast & Stream-Ready 🎬


Main Feature

  • Clone Feature & On / Off
  • Premium Plan Feature
  • Refer To Get Premium
  • Ai Spell Check
  • Custom Force Subscribe
  • Rename Feature & On / Off
  • Premium And Refer On / Off
  • Stream Feature On / Off
  • Url Shortner On / Off Feature
  • PM Search On / Off
  • Request To Join Force Subscribe With Auto File Send
  • Custom Stream
  • Stream Feature With Many Player Support
  • Language & Season & Quality & Episode & Year Choose Option
  • Auto Approve & On / Off
  • Custom Url Shortner Support
  • Token Verification
  • Send All Button
  • Custom Tutorial Button
  • Bot Pm File Auto Delete

Commands

/clone - Create your own clone auto filter bot
/index - Index file from your channel
/logs - To get the recent errors
/stats - To get status of files in DB
/connections - To see all connected groups
/settings - To open settings menu
/filter - Add manual filters
/filters - View filters
/connect - Connect to PM
/disconnect - Disconnect from PM
/del - Delete a filter
/delall - Delete all filters
/deleteall - Delete all indexed files
/delete - Delete a specific file from index
/info - Get user info
/id - Get Telegram IDs
/imdb - Fetch info from IMDb
/search - To search from various sources
/start - To start the bot
/setskip - To skip number of messages when indexing files
/users - To get list of my users and IDs
/chats - To get list of my chats and IDs
/leave - To leave from a chat
/disable - To disable a chat
/enable - To re-enable a chat
/ban - To ban a user
/unban - To unban a user
/channel - To get list of total connected channels
/broadcast - To broadcast a message to all users
/grp_broadcast - To broadcast a message to all connected groups
/batch - To create link for multiple posts
/link - To create link for one post
/status - Your Heroku API key to check dyno, bot uptime and working day prediction
/set_template - To set a custom IMDb template for individual groups
/gfilter - To add global filters
/gfilters - To view list of all global filters
/delg - To delete a specific global filter
/delallg - To delete all global filters from the bot’s database
/deletefiles - To delete PreDVD and CamRip files from the bot’s database
/add_premium - Add user to premium list
/remove_premium - Remove user from premium list
/plan - Check plan details
/myplan - Check your plan stats
/shortlink - Set your URL shortener in your group
/setshortlinkoff - Turn off shortlink in your group
/setshortlinkon - Turn on shortlink in your group
/shortlink_info - Check your group’s shortlink and tutorial link details
/set_tutorial - Set your URL shortener tutorial link
/remove_tutorial - Remove your tutorial URL
/restart - Restart the bot server
/fsub - Add force subscribe channel in group
/nofsub - Remove or turn off force subscribe in your group
/rename - Rename your file
/set_caption - Add caption for your renamed file
/see_caption - See your saved caption
/del_caption - Delete your saved caption
/set_thumb - Add thumbnail for your renamed file
/view_thumb - View your saved thumbnail
/del_thumb - Delete your saved thumbnail
/stream - Generate stream and download link of your file
/telegraph - Get telegraph link of any file under 5MB
/stickerid - To get ID and unique ID of sticker
/font - To get any type of font of any word
/purgerequests - Delete all join requests from database
/totalrequests - Get total number of join requests from database

Variables

Required Variables

  • BOT_TOKEN: Create a bot using @BotFather, and get the Telegram API token.
  • API_ID: Get this value from telegram.org
  • API_HASH: Get this value from telegram.org
  • CHANNELS: Username or ID of channel or group. Separate multiple IDs by space
  • ADMINS: Username or ID of Admin. Separate multiple Admins by space
  • DATABASE_URI: mongoDB URI. Get this value from mongoDB.
  • DATABASE_NAME: Name of the database in mongoDB.
  • LOG_CHANNEL : A channel to log the activities of bot. Make sure bot is an admin in the channel.

Optional Variables

  • PICS: Telegraph links of images to show in start message.( Multiple images can be used separated by space )
  • FILE_STORE_CHANNEL: Channel from were file store links of posts should be made.Separate multiple IDs by space
  • Check info.py for more optional variables.
Deploy To Heroku


Deploy To Heroku

Deploy To Koyeb
The fastest way to deploy the application is to click the Deploy to Koyeb button below.

Deploy to Koyeb

Deploy To Render
Use these commands:

• Build Command: pip3 install -U -r requirements.txt

• Start Command: python3 bot.py

Go to https://uptimerobot.com/ and add a monitor to keep your bot alive.

Use these settings when adding a monitor:


render template

Click on the below button to deploy directly to render ↓

Deploy to Render
Deploy To VPS
  • Clone this repository
git clone https://github.com/Tamilupdates/KPS-Filter-Bot kps-filter-bot && cd kps-filter-bot
  • Install Packages
pip3 install -U -r requirements.txt
  • Edit info.py with variables as given below then run bot
python3 bot.py

Thanks to

Disclaimer

GNU Affero General Public License 2.0
Licensed under GNU AGPL 2.0. Selling The Codes To Other People For Money Is Strictly Prohibited.