Giter Club home page Giter Club logo

gareryer / fileguardianbot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nabilanavab/fileguardianbot

0.0 0.0 0.0 343 KB

FileGuardianBot ๐Ÿš€: Your ultimate data guardian on Telegram! Enjoy Time-Traveling Data with a delete timer, Password Protection, and a No-Forwarding Forcefield. It supports batching multiple data at once and is written in the Node.js environment. ๐Ÿ“ฆ

Home Page: https://telegram.dog/fileGuardianBot

License: Apache License 2.0

JavaScript 98.52% HTML 1.33% Dockerfile 0.15%

fileguardianbot's Introduction

Typing SVG

Buy Me A Coffee

Note : Please take a look at this bot before hosting it yourself ๐ŸŒŸ

File Guardian bot [ ver: 2.0.0 ]

Welcome to File Guardian Bot โ€“ your powerful and versatile file-sharing companion! This bot is designed to make file sharing a seamless experience, allowing you to create both private and public URLs for various file types, including messages, text, stickers, and more.

The Ultimate Guide (No, Seriously, It's Great) - Version 2.0.0 ๐Ÿš€

  • ๐ŸŒ Guardian of All Things Data : ready to protect and serve any kind of your data with a side of charm.
  • โฐ Time-Traveling Data : Delete Timer, Set a timer for shared files to automatically delete after a specified duration, ensuring data privacy and security.
  • ๐Ÿ›ก๏ธ Password Protection - Because Files Have Secrets Too : Private and Public URLs, Easily generate links for your files, ensuring flexible sharing options for both private and public audiences. By Adding an extra layer of password protection.
  • ๐Ÿšซ The No-Forwarding Forcefield : Prevent file forwarding to maintain control over the dissemination of your shared content
  • ๐Ÿ”ƒ No Forward Quotes : have the power to hide the owner of their content.
  • ๐Ÿ”ƒ Multiple Language Support: File Guardian Bot caters to a global audience with support for multiple languages.
  • โœ Add Custom Caption: Set Custom Caption For Files saperately
  • ๐Ÿ˜Ž Add Custom Buttom: Set Custom Button For Files saperately
  • But hold on... That's not all! ๐Ÿ›‘โœจ Our Telegram bot doesn't stop there. In addition to the amazing features that we've already mentioned, it supports batching multiple files as one! ๐Ÿ“ฆ๐Ÿš€ #NextLevelFileSharing"

How to Use, The Basics (Because We Have to Start Somewhere)

Generating Links: ๐Ÿš€

For an individual message, it's a breeze! Simply use a simple forward or send the message to the bot's private chat, and voila, the link is ready!

  • Single Message:

    1. Forward the message to the bot.
    2. Receive the magic link! ๐Ÿช„โœจ

But wait, there's more! For multiple file batching, send /batch in the bot's private chat. Choose from two options:

  1. Batch from Channel:

    • Batch up to 100 messages directly from your channel.
  2. Batch from Message:

    • Batch up to 10 messages from your chat.

For Developers ๐Ÿ‘ฉโ€๐Ÿ’ป

Unlike other file share telegram bots, Our dev playground doesn't dance with the Python snakes โ€“ it grooves with Node.js, the JavaScript environment for snappy deployments and lightning-fast responses. ๐Ÿš€

This repo is merely a test ground for my learning journey. Expect bugs on this rollercoaster of education, and your insights are gold! Feel free to shout out those bugs

Deploying with Ease: A Quick Guide

Remembering all the things, let's breeze through deployment.

  1. PaaS Setup:

    • If you're on a PaaS with a worker, the Docker path is your secret sauce. ๐Ÿณโœจ
    • Ensure you have a PaaS with a worker (e.g., Heroku, Railways). ๐Ÿš€
  2. VPS | Local Setup:

    • Ensure that Node environment is installed on your the platform that you are using.
    • Confirm with the sacred command:
      node -v
    • Begin by cloning the Git project using:
      git clone https://github.com/nabilanavab/FileGuardianBot.git
    • Install the required packages using npm:
      npm install
      or using yarn:
      yarn install
    • Initiate the server enchantment using:
      node FileGuardian/FileGuardianBot
  3. Docker File Deployment:

    • Navigate to the project home page, where the Docker file awaits.
    • Unleash the Docker magic using:
      docker build -t nabilanavab .
      docker run -d nabilanavab
  4. For Web Servers (Concurrent Thread Setup):

    • Web servers like Render or Koyeb bring a concurrent thread party.
    • One thread for web requests, one for the bot - they dance together! ๐Ÿ’ƒ๐Ÿค–
    • (Render, Koyeb, etc.)

Environment Variables

Before deploying your Telegram bot, don't forget to review and configure the environment variables to ensure the smooth operation

Mandatory Variables ( it just won't function properly without them! ๐Ÿช )

  • API_HASH: Your Telegram API hash. From: my.telegram.org
  • API_ID: Your Telegram API ID. From: my.telegram.org
  • API_TOKEN: Your Telegram bot token. From: telegram.dog/botfather
  • LOG_CHANNEL: Telegram channel ID where logs messages will be sent. Example: -100xxxxxxxxx

Highly Suggested (but not Mandatory)

  • MONGODB_URI: If you want to keep customized data, consider setting up a MongoDB database. Example: "mongodb+srv://your-username:[email protected]/your-database-name"

Optional Variables

  • TIME_LIMIT: The time (in mins) within which a user's message count will be considered for rate limiting.
  • NUMBER_LIMIT: The maximum number of messages a user can send within the specified time limit.
  • WELCOME_PIC: A URL pointing to a welcome picture that will be displayed when users starts the bot.
  • MULTIPLE_LANG: Set this variable to true if you want to enable support for multiple languages in your bot.
  • FORCE_SUB: Set Channel Id, if you want to enforce subscription to a specific channel.
  • REQUEST_CHANNEL: If FORCE_SUB & its a private channel, this variable send join requests.
  • CHANNEL_ID: If you want to broadcast a restart message, set this variable to the channel ID
  • MESSAGE_ID: If CHANNEL_ID is specified, set this variable to the message ID of the restart message.

Welcome to Version 3.0.0 and beyond!

  • ADV_TOKEN: for personalized advertisement separating domains & API token with space.
urlshortx.com f36086d0aa5d8c51aebb829165d05ab6b0a62cb1

Troubleshooting (Because We Can't Predict Everything)

Things go wrong sometimes, and we get it. If you find yourself facing unexpected challenges or quirks while using File Guardian Bot, fret not. We're here to help, and your feedback is gold.

  • Suggestions or Changes : If you have suggestions or ideas for improvements, or if you spot something that needs fixing, feel free to create an issue on GitHub. We love hearing from you!

  • Pull Requests : Want to roll up your sleeves and contribute to making File Guardian Bot even better? Fantastic! Submit a pull request on GitHub, and let's build something awesome together.

fileguardianbot's People

Contributors

nabilanavab 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.