Skip to content

abdulwahid1o/File-Store-Bot-With-Url-Shortner

 
 

Repository files navigation

TGFileStore

𝗧𝗵𝗶𝘀 𝗶𝘀 𝗧𝗲𝗹𝗲𝗴𝗿𝗮𝗺 𝗣𝗮𝗿𝗺𝗮𝗻𝗲𝗻𝘁 𝗙𝗶𝗹𝗲𝘀 𝗦𝘁𝗼𝗿𝗲 𝗕𝗼𝘁 𝗯𝘆 VJ_Botz.

Features:

  • In PM Just Forward or Send any file it will save on Database & give you the Access Link.
  • In Channel Add Bot as Admin with Edit Rights. When you will send any file or media in Channel it will Edit the Broadcast Message with Saved Link Button.
  • You can also Broadcast anythings via this Bot.
  • You can also Do Force Sub to a Channel to allow access the Bot.

Deploy On Render

Deploy To Render
Use these commands:

• Runtime: Python 3

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

• Start Command: gunicorn app:app & 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 On Heroku

Deploy To Heroku
Deploy to Heroku

Deploy On Koyeb

Deploy To Koyeb
Deploy to Koyeb

Demo Bot:

Configs 🤖

  • API_ID - Get this from TelegramORG
  • API_HASH - Get this from TelegramORG
  • BOT_TOKEN - Get this from @BotFather
  • BOT_USERNAME - You Bot Username. (Without [@])
  • DB_CHANNEL - A Telegram Channel ID.
    • Make a Channel for Storing Files. We will use that as Database. Channel must be Private! Else you will be Copyright by Telegram DMCA!
  • BOT_OWNER - Bot Owner UserID
    • Put your Telegram UserID for doing Broadcast.
  • DATABASE_URL - MongoDB Database URI
    • This for Saving UserIDs. When you will Broadcast, bot will forward the Broadcast to DB Users.
  • UPDATES_CHANNEL - Force Sub Channel ID (Optional)
    • ID of a Channel which you want to do Force Sub to use the bot.
  • LOG_CHANNEL - Logs Channel ID
    • This for some getting user info. If any new User added to DB, Bot will send Log to that Logs Channel. You can use same DB Channel ID.

Deploy Now:

Deploy

Commands:

start - start the bot
clear_batch - Clear User Batch Files
status - Show number of users in DB [Owner Only]
broadcast - Broadcast replied message to DB Users [Owner Only]
ban_user - [user_id] [ban_duration] [ban_reason] Ban Any User [Owner Only]
unban_user - [user_id] Unban Any User [Owner Only]
banned_users - Get All Banned Users [Owner Only]

𝐒𝐮𝐩𝐩𝐨𝐫𝐭 𝐆𝐫𝐨𝐮𝐩:

𝐔𝐩𝐝𝐚𝐭𝐞𝐬 𝐂𝐡𝐚𝐧𝐧𝐞𝐥:

👲 DEV


Credit

  • Thanks To Tech VJ For Fixing Error In Repo & Make Repo Deployable on Web Platform. 💝
  • Thanks To All Who Help In This Journey. ♥️

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 98.2%
  • Dockerfile 1.7%
  • Procfile 0.1%