{
"database": {
"type": "local",// memory, local, sqlite, redis
"path": "/app/data.json" // your database path
},
"server": { // server configuration for webhook mode
"hostname": "0.0.0.0",
"port": 3000, // must 8787 when using docker
"baseURL": "https://example.com"
},
'proxy': 'http://127.0.0.1:7890', // proxy for telegram api
"mode": "webhook", // webhook, polling
}
The toml content is compatible with Cloudflare Workers configuration files.
npm install
npm run start:local
or
npm install
npm run build:local
CONFIG_PATH=./config.json TOML_PATH=./wrangler.toml npm run start:dist
docker build -t chatgpt-telegram-workers:latest .
or
npm run build:docker # Faster (directly use the locally built results to create the image)
docker run -d -p 8787:8787 -v $(pwd)/config.json:/app/config.json:ro -v $(pwd)/wrangler.toml:/app/config.toml:ro chatgpt-telegram-workers:latest
Manually modify the configuration file path in docker-compose.yml.
docker-compose up # edit the docker-compose.yml to change the config file path
https://github.com/TBXark/ChatGPT-Telegram-Workers/pkgs/container/chatgpt-telegram-workers
docker pull ghcr.io/tbxark/chatgpt-telegram-workers:latest
docker run -d -p 8787:8787 -v $(pwd)/config.json:/app/config.json:ro -v $(pwd)/wrangler.toml:/app/config.toml:ro ghcr.io/tbxark/chatgpt-telegram-workers:latest