improve readme

This commit is contained in:
stefanodvx 2025-04-15 18:57:32 +02:00
parent e9db655733
commit b4b371e0db
2 changed files with 25 additions and 7 deletions

View file

@ -8,7 +8,7 @@ DB_PASSWORD=password
# gotgbot # gotgbot
BOT_API_URL=https://api.telegram.org BOT_API_URL=https://api.telegram.org
BOT_TOKEN=12345678:ABC-DEF1234ghIkl-zyx57W2P0s BOT_TOKEN=12345678:ABC-DEF1234ghIkl-zyx57W2P0s
CONCURRENT_UPDATES=-1 CONCURRENT_UPDATES=50
LOG_DISPATCHER_ERRORS=0 LOG_DISPATCHER_ERRORS=0
# downloads # downloads

View file

@ -22,11 +22,6 @@ this project was born after the discontinuation of a highly popular bot known as
- pkg-config - pkg-config
- mysql db - mysql db
## botapi
to avoid limits on files, you should host your own telegram botapi. public bot instance is currently running under a botapi fork, [tdlight-telegram-bot-api](https://github.com/tdlight-team/tdlight-telegram-bot-api)
## installation ## installation
```bash ```bash
@ -36,6 +31,28 @@ cd govd
sh build.sh sh build.sh
``` ```
## env variables
| variable | description | default |
|-----------------------|--------------------------------------------------|----------------------------------------|
| `DB_HOST` | database host | `localhost` |
| `DB_PORT` | database port | `3306` |
| `DB_NAME` | database name | `govd` |
| `DB_USER` | database user | `govd` |
| `DB_PASSWORD` | database password | `password` |
| `BOT_API_URL`* | telegram bot api url | `https://api.telegram.org` |
| `BOT_TOKEN` | telegram bot token | `12345678:ABC-DEF1234ghIkl-zyx57W2P0s` |
| `CONCURRENT_UPDATES` | max concurrent updates handled by the bot | `50` |
| `LOG_DISPATCHER_ERRORS` | log dispatcher errors | `0` |
| `DOWNLOADS_DIR` | directory for downloaded files | `downloads` |
| `HTTP_PROXY` | http proxy (optional) | |
| `HTTPS_PROXY` | http proxy (optional) | |
| `NO_PROXY` | no proxy domains (optional) | |
| `REPO_URL` | project repository url | `https://github.com/govdbot/govd` |
**note:**
to avoid limits on files, you should host your own telegram botapi. public bot instance is currently running under a botapi fork, [tdlight-telegram-bot-api](https://github.com/tdlight-team/tdlight-telegram-bot-api), but you can use the official botapi client too.
## cookies ## cookies
some extractors require cookies for download. to add your cookies, just insert a txt file in cookies folder (netscape format) some extractors require cookies for download. to add your cookies, just insert a txt file in cookies folder (netscape format)
@ -51,3 +68,4 @@ some extractors require cookies for download. to add your cookies, just insert a
- [ ] add support for telegram wehbhooks - [ ] add support for telegram wehbhooks
- [ ] switch to pgsql (?) - [ ] switch to pgsql (?)
- [ ] better API (?) - [ ] better API (?)
- [ ] better docs with multiple README