aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBohdan Horbeshko <bodqhrohro@gmail.com>2022-01-26 19:59:38 +0300
committerBohdan Horbeshko <bodqhrohro@gmail.com>2022-01-26 19:59:38 +0300
commita2781be79df861335a84ec580d6443777900df9f (patch)
tree123e7c68209cf261732913c8e9b63e5b0eefb115
parent7261b609164ff9acd5403afc6a5272f7eb927e04 (diff)
Remove legacy lib_path parameter
-rw-r--r--README.md1
-rw-r--r--config.yml.example1
-rw-r--r--config/config.go1
-rw-r--r--config_schema.json5
-rw-r--r--test/bad_config.yml1
-rw-r--r--test/good_config.yml1
6 files changed, 1 insertions, 9 deletions
diff --git a/README.md b/README.md
index 4a73798..baef1cf 100644
--- a/README.md
+++ b/README.md
@@ -60,7 +60,6 @@ It is good idea to obtain Telegram API ID from [**https://my.telegram.org**](htt
```
:telegram:
:tdlib:
- :lib_path: 'lib/'
:client:
:api_id: '845316' # telegram API ID (my.telegram.org) #
:api_hash: '27fe5224bc822bf3a45e015b4f9dfdb7' # telegram API HASH (my.telegram.org) #
diff --git a/config.yml.example b/config.yml.example
index 1be5b61..130366b 100644
--- a/config.yml.example
+++ b/config.yml.example
@@ -6,7 +6,6 @@
:upload: 'https:///xmppfiles.localhost' # xmpp http upload address
:tdlib_verbosity: 1
:tdlib:
- :lib_path: 'lib/'
:client:
:api_id: '17349'
:api_hash: '344583e45741c457fe1862106095a5eb'
diff --git a/config/config.go b/config/config.go
index dad6706..39fa4da 100644
--- a/config/config.go
+++ b/config/config.go
@@ -42,7 +42,6 @@ type TelegramContentConfig struct {
// TelegramTdlibConfig is for :tdlib: subtree
type TelegramTdlibConfig struct {
- Path string `yaml:":lib_path"`
Client TelegramTdlibClientConfig `yaml:":client"`
}
diff --git a/config_schema.json b/config_schema.json
index 48454a5..f146edb 100644
--- a/config_schema.json
+++ b/config_schema.json
@@ -28,12 +28,9 @@
"type": "integer"
},
":tdlib": {
- "required": [":lib_path", ":client"],
+ "required": [":client"],
"type": "object",
"properties": {
- ":lib_path": {
- "$ref": "#/definitions/non-empty-string"
- },
":client": {
"type": "object",
"required": [":api_id", ":api_hash"],
diff --git a/test/bad_config.yml b/test/bad_config.yml
index 83dbdf1..094faf4 100644
--- a/test/bad_config.yml
+++ b/test/bad_config.yml
@@ -6,7 +6,6 @@
:upload: 'https:///xmppfiles.localhost' # xmpp http upload address
:tdlib_verbosity: 1
:tdlib:
- :lib_path: 'lib/'
:client:
:api_id: '17349'
:api_hash: '344583e45741c457fe1862106095a5eb'
diff --git a/test/good_config.yml b/test/good_config.yml
index a60bb4b..ac68438 100644
--- a/test/good_config.yml
+++ b/test/good_config.yml
@@ -6,7 +6,6 @@
:upload: '' # xmpp http upload address
:tdlib_verbosity: 1
:tdlib:
- :lib_path: 'lib/'
:client:
:api_id: '17349'
:api_hash: '344583e45741c457fe1862106095a5eb'