Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
blvdek authored Jul 9, 2024
1 parent 6e48608 commit 265cb0d
Showing 1 changed file with 35 additions and 35 deletions.
70 changes: 35 additions & 35 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,41 +73,41 @@ poetry run python -m bot

To launch the bot you only need a token bot, database, Redis and Nextcloud settings, everything else can be left out. For more information, see `.env.example`.

| Name | Description |
| -------------------------- | ------------------------------------------------------------------------------------------- |
| `APPNAME` | Name of the application. |
| `LOGGING` | Logging level. |
| `TG__TOKEN` | Token used to authenticate the bot with the Telegram API. |
| `TG__PAGE_SIZE` | Page size for pagination for Telegram API. |
| `TG__MAX_UPLOAD_SIZE` | Maximum size of a file that can be uploaded. |
| `TG__DROP_PENDING_UPDATES` | Whether to drop pending updates on bot restart. |
| `TG__API_SERVER` | The URL of the self-hosted Telegram API server. |
| `NC__PROTOCOL` | Protocol used to communicate with the Nextcloud server. |
| `NC__HOST` | Hostname of the Nextcloud server. |
| `NC__PORT` | Port number on which the Nextcloud server listens. |
| `NC__OVERWRITE__PROTOCOL` | External accessible protocol. |
| `NC__OVERWRITE__HOST` | External accessible hostname. |
| `NC__OVERWRITE__PORT` | External accessible hostname. |
| `NC__CHUNK_SIZE` | Maximum size of file chunks for uploads. |
| `WEBHOOK__HOST` | The hostname of webhook server. |
| `WEBHOOK__PORT` | The port number on which the webhook server listens. |
| `WEBHOOK__URL` | The base URL for the webhook endpoint. |
| `WEBHOOK__PATH` | The path under which the webhook endpoint is accessible. |
| `WEBHOOK__SECRET` | A secret token used for webhook verification. |
| `REDIS__HOST` | Hostname of the Redis server. |
| `REDIS__DB` | Database number within Redis to connect to. |
| `REDIS__PORT` | Port number on which the Redis server listens. |
| `REDIS__USER` | Uername for Redis authentication. |
| `REDIS__PASSWORD` | Password for Redis authentication. |
| `REDIS__STATE_TTL` | Time-to-live for state data in Redis. |
| `REDIS__DATA_TTL` | Time-to-live for operational data in Redis. |
| `DB__HOST` | The hostname of the database server. |
| `DB__USER` | The username for database authentication. |
| `DB__DB` | The name of the database. |
| `DB__PASSWORD` | The password for database authentication. |
| `DB__PORT` | The port number on which the database server listens. |
| `DB__DRIVER` | The database driver to use. |
| `DB__DATABASE_SYSTEM` | The type of database system. |
| Name | Description |
| -------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| `APPNAME` | Name of the application that will be displayed on the Nextcloud authorization page. `Defaults` to "Nextcloud Telegram Bot". |
| `LOGGING` | Logging level. `Possible values:` "DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL". `Defaults` to "INFO". |
| `TG__TOKEN` | Telegram token that can be obtained from Bot Father in Telegram. |
| `TG__PAGE_SIZE` | Page size for pagination for fsnodes on inline keyboard. `Defaults` to 8. |
| `TG__MAX_UPLOAD_SIZE` | Maximum size of a file that can be uploaded in Telegram. Can be increased when using the self-hosted Telegram api. `Defaults` to 20971520. |
| `TG__DROP_PENDING_UPDATES` | Whether to drop pending updates on bot restart. `Defaults` to True. |
| `TG__API_SERVER` | The URL of the self-hosted Telegram API server. `Optional`. |
| `NC__PROTOCOL` | Protocol used to communicate with the Nextcloud server. `Defaults` to "https". |
| `NC__HOST` | Hostname of the Nextcloud server. |
| `NC__PORT` | Port number on which the Nextcloud server listens. `Defaults` to 80. |
| `NC__OVERWRITE__PROTOCOL` | Overwrites the NC__PROTOCOL used to communicate with the Nextcloud server in links to Nextcloud sent by the bot. `Optional`. `Defaults` to "https". |
| `NC__OVERWRITE__HOST` | Overwrites the NC__HOST used to communicate with the Nextcloud server in links to Nextcloud sent by the bot. `Optional`. |
| `NC__OVERWRITE__PORT` | Overwrites the NC__PORT used to communicate with the Nextcloud server in links to Nextcloud sent by the bot. `Optional`. `Defaults` to 80. |
| `NC__CHUNK_SIZE` | Size of file chunks for uploads and downloads. `Defaults` to 5242880. |
| `WEBHOOK__HOST` | The host of webhook. `Optional`. |
| `WEBHOOK__PORT` | The port number on which the webhook server listens. `Optional`. |
| `WEBHOOK__URL` | The base URL for the webhook endpoint. `Optional`. |
| `WEBHOOK__PATH` | The path under which the webhook endpoint is accessible. `Optional`. `Defaults` to "/webhook". |
| `WEBHOOK__SECRET` | A secret token used for webhook verification. `Optional`. |
| `REDIS__HOST` | Hostname of the Redis server. `Optional` |
| `REDIS__DB` | Database number within Redis to connect to. `Optional`. `Defaults` to 1. |
| `REDIS__PORT` | Port number on which the Redis server listens. `Optional`. `Defaults` to 6379. |
| `REDIS__USER` | Uername for Redis authentication. `Optional`. |
| `REDIS__PASSWORD` | Password for Redis authentication. `Optional`. |
| `REDIS__STATE_TTL` | Time-to-live for state data in Redis. `Optional`. |
| `REDIS__DATA_TTL` | Time-to-live for operational data in Redis. `Optional`. |
| `DB__HOST` | The hostname of the database server. |
| `DB__USER` | The username for database authentication. |
| `DB__PASSWORD` | The password for database authentication. |
| `DB__DB` | The name of the database. |
| `DB__PORT` | The port number on which the database server listens. `Defaults` to 5432. |
| `DB__DRIVER` | The database driver to use. `Defaults` to "asyncpg". |
| `DB__DATABASE_SYSTEM` | The type of database system. `Default`s to "postgresql". |


## ☁️ Docker and Nextcloud
Expand Down

0 comments on commit 265cb0d

Please sign in to comment.