Giter Club home page Giter Club logo

file-store-bot-with-url-shortner's Introduction

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. โ™ฅ๏ธ

file-store-bot-with-url-shortner's People

Contributors

predatorhackerzz avatar vjbots avatar abirhasan2005 avatar tamilupdates avatar mokshb6458 avatar kgk06 avatar mrvishal2k2 avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.