TGFS Config Generator

Generate your TGFS configuration file with this interactive form
Telegram
API Credentials
Get API Keys
Private File Channels & Metadata

Configure one or more private channels to store files. Each channel needs both a channel ID and metadata configuration to maintain the directory structure.

Valid directory name for metadata

The metadata will be maintained in a json file pinned in the file channel. Every directory operation reuploads and updates the pinned file.

⚠️ NEVER delete the pinned file AND NEVER manually pin any message.

Bot Tokens
@BotFather

TGFS
Users
JWT
Server

WebDAV server will be at http://0.0.0.0:1900/webdav

TGFS server will be at http://0.0.0.0:1900 (Used in the Telegram Mini App).

Generated Configuration
telegram:
  api_id: ''
  api_hash: ''
  lib: telethon
  bot:
    session_file: bot.session
    tokens: []
  private_file_channel: []
tgfs:
  users:
    user:
      password: password
  download:
    chunk_size_kb: 1024
  jwt:
    secret: ''
    algorithm: HS256
    life: 604800
  metadata: {}
  server:
    host: 0.0.0.0
    port: 1900