Spaces:
Running on Zero
Running on Zero
|
Download README.md from Thaimozhi/File-Store-Bot: direct link, hf CLI and curl.
- Browser
- Download file 1.44 kB
-
https://huggingface.co/spaces/Thaimozhi/File-Store-Bot/resolve/main/README.md
- Command line
-
hf download hf://spaces/Thaimozhi/File-Store-Bot/README.md
-
curl -L -o README.md https://huggingface.co/spaces/Thaimozhi/File-Store-Bot/resolve/main/README.md
1.44 kB
A newer version of the Gradio SDK is available: 6.31.0
metadata
title: File Store Bot
emoji: π
colorFrom: yellow
colorTo: green
sdk: gradio
sdk_version: 5.0.0
app_file: app.py
pinned: false
File Store Bot π
Welcome to the File Store Bot repository. This bot is configured to run 24/7 on Hugging Face Spaces using Docker.
Setup Instructions
Environment Variables
Configure the following secrets in your Hugging Face Space settings under the Variables and secrets section:
API_ID: Your Telegram API ID.API_HASH: Your Telegram API Hash.BOT_TOKEN: The bot token from@BotFather.OWNER_ID: Your Telegram User ID (owner of the bot).ADMINS: Space-separated list of Telegram User IDs who can administer the bot (e.g.1234567 8901234).DB_URI: MongoDB connection string (e.g.,mongodb+srv://...).DB_NAME: MongoDB database name (default:FileStoreBot).DB_CHANNEL: Telegram channel ID where the files are stored (include the-100prefix).
Features
- Dynamic File Storage: Store files in database channels and access them using short links.
- Force Subscription (FSub): Users must join specified channel(s) before retrieving files.
- Beautiful Dashboard: A premium, live web status page showing resource usage (CPU/RAM/storage) and environment details.
- Aiohttp Web Server: Seamless 24/7 uptime using an embedded server bound to Hugging Face Space's expected port (
7860).