Skip to content

ITtest1/TeleFileDB-Plus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

title TeleFileDB Plus
emoji 📁
colorFrom blue
colorTo green
sdk docker
app_port 7860
pinned false

🚀 TeleFileDB+ (Plus Version)

您的私人 Telegram 檔案索引與管理工具 / Your Private Telegram File Index & Management Tool

💡 關於本專案 / About This Project

這個專案是我在完全沒有程式基礎的情況下,透過 Gemini CLI 使用自然語言指令與 AI 協作完成的。本專案大部分程式碼由 AI 工具生成。我負責邏輯導向與功能定義,AI 負責技術實現。如有任何授權爭議或建議,請與我聯繫以便更正。

This project was developed by a creator with no prior programming background, using only natural language commands via Gemini CLI. Most of the codebase was generated by AI. I focused on logic and functional requirements, while AI handled the technical implementation. Please contact me regarding any licensing concerns or suggestions for improvement.


⚠️ 重要安全警告 (請必讀) / Important Security Warning (Must Read)

  1. 網頁端操作限制 / Web Interface Limitations: 本專案網頁端(Pyrogram 核心)不建議頻繁處理大檔案。20MB 以上的下載50MB 以上的上傳 若在網頁端執行,極易觸發 Telegram 長達 2000+ 秒的限制 (Flood Wait),甚至有封號風險。 Avoid frequent large file operations (>20MB download / >50MB upload) on the Web UI. These actions highly likely trigger Telegram's 2000+s Flood Wait or even lead to account termination.

  2. 強烈建議官方下載 / Official Client Recommended: 對於大檔案,請點擊 「View in Telegram」 按鈕跳轉至官方客戶端進行穩定下載或播放。 For large files, use the "View in Telegram" button to download/stream stably via the official app.

  3. 2GB 上傳與 4GB 下載限制 (免責說明) / 2GB Upload & 4GB Download (Disclaimer):

    • 上傳:單個檔案上限固定為 2GB
    • 下載:實測 4GB 以下亦可順利下載。這屬於 Telegram API 的未知行為,開發者無技術能力突破官方限制。若日後此「福利」消失,純屬正常預期。 - Upload: Fixed at 2GB limit. - Download: Current tests show up to 4GB is possible. This is an unexpected API behavior and not guaranteed.
  4. 存儲性質 / Storage Nature: 資料庫僅保存索引。雖然轉發到私有頻道能延長檔案存取壽命,但若帳號被封禁,檔案將無法救回。請務必做好重要資料的異地備份。 The database only stores indices. While forwarding to private channels extends access, files cannot be recovered if your account is banned. Always keep external backups of important data.


✨ 核心特色與建議操作 / Key Features & Best Practices

📡 強烈建議的添加檔案方式 / Recommended File Addition Methods

為了保護帳號安全並獲得最佳體驗,請多善用 run_listener.py 腳本功能: To ensure account safety and best experience, utilize the run_listener.py background script:

  1. 自動監聽同步 (免動手) / Auto-Sync via Monitoring:

    • 在官方 App 將檔案「發送」或「轉發」到您設定的自動監聽群組。
    • 系統會秒速自動將其索引至 TeleFileDB+ 的監聽目錄。 - Forward/Upload files to monitored groups in the official app; they will sync to TeleFileDB+ instantly.
  2. 手動指令索引 (精準收藏) / Manual Indexing via /savdb:

    • 在任何群組或私聊 Bot 時,對檔案回覆 /savdb 指令。
    • 檔案會添加到您指定的目錄(默認為 root/savdb)。
    • 進階:支援自定義目錄路徑與文件名(詳見文檔)。 - Reply to any file with /savdb to index it to a specific folder. Supports custom paths and filenames.
  3. 自動分卷/切片處理: 針對大於 2GB 的任務,系統會自動進行 ffmpeg 媒體流切片 或 7z 物理分卷壓縮。 Auto-Splitting / Segmentation: Tasks exceeding 2GB are automatically processed via ffmpeg stream segmenting or 7z multi-part volume splitting. Auto-splitting for >2GB uploads using ffmpeg or 7z.


🌐 在線演示 / Live Demo

您可以透過以下連結體驗 TeleFileDB+ 的界面與查詢功能:


🛠️ 常用維護指令 / Common Maintenance Commands

目標 / Goal 指令 / Command
重置管理員密碼 / Reset Admin Pwd docker exec -it telefiledb_app flask create-admin
升級資料庫結構 / Migrate DB docker exec -it telefiledb_app python migrate_db.py
環境清理(含會話) / Full Cleanup bash cleanup_for_release.sh

📚 詳細教學 / Detailed Tutorials

  1. 🚀 一鍵部署教學 / One-Click Deployment
  2. 📡 獲取 Telegram 憑證與指令設定 / Get Telegram Credentials
  3. 🔑 環境變數 Secret 清單 / Secrets List
  4. 🛠️ API 限制與疑難排解 / Troubleshooting
  5. 📡 添加檔案與索引策略 / File Addition Strategies
  6. 🐳 Docker Compose 部署教學 / Docker Compose Setup
  7. 💖 捐獻與支持 / Donation & Support

About

TeleFileDB+ : Telegram 機器人檔案索引與管理器。支援 2GB+ 上傳、自動分片、私密群組監聽,打造您的無限雲端網盤。TeleFileDB+ : A Telegram bot based file indexer and manager. Supports 2GB+ uploads, auto-splitting, and private group monitoring. Build your own unlimited cloud drive.

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors