Run tgNetDisc as a binary executable
masterYou can run the compiled binary (named tgstate in the documentation) directly. Use the following flags to configure the service:
-token <token>: The Telegram Bot token.-channel <channel>: The channel address (e.g.,@xxxx) or a numeric personal ID.-port <port>: Customizes the listening port (e.g.,-port 8888).-index: If provided, the homepage is disabled, leaving only the API and image display pages.-pass <password>: Enables password-protected access (e.g.,-pass csznet).-mode pan: Enables 'Cloud Disk' (网盘) mode.
# Basic startup
./tgstate -token xxxx -channel @xxxx
# Advanced startup with custom port, password, and pan mode
./tgstate -token xxxx -channel @xxxx -port 8888 -pass csznet -mode pan
# API/Image only mode (no homepage)
./tgstate -token xxxx -channel @xxxx -port 8888 -index