From b17d04ddc53cfe75a550a741814cbab0efe62fc4 Mon Sep 17 00:00:00 2001 From: si458 Date: Mon, 27 Nov 2023 15:14:51 +0000 Subject: [PATCH] add extra telegram options to docs/config #5587 Signed-off-by: si458 --- docs/docs/meshcentral/config.md | 8 ++++++++ meshcentral-config-schema.json | 8 ++++++++ sample-config-advanced.json | 4 +++- 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/docs/docs/meshcentral/config.md b/docs/docs/meshcentral/config.md index d42287d572..e8708647d7 100644 --- a/docs/docs/meshcentral/config.md +++ b/docs/docs/meshcentral/config.md @@ -3368,6 +3368,14 @@ See description for information about each item. }, "session": { "type": "string" + }, + "useWSS": { + "type": "boolean", + "description": "Whether to try to connect over Wss (or 443 port) or not" + }, + "connectionRetries": { + "type": "number", + "description": "How many times the reconnection should retry, either on the initial connection or when Telegram disconnects us. May be set to a negative value for infinite retries, but this is not recommended. Defaults to 5" } } }, diff --git a/meshcentral-config-schema.json b/meshcentral-config-schema.json index d1d7f70f0a..b8956a7036 100644 --- a/meshcentral-config-schema.json +++ b/meshcentral-config-schema.json @@ -3361,6 +3361,14 @@ }, "session": { "type": "string" + }, + "useWSS": { + "type": "boolean", + "description": "Whether to try to connect over Wss (or 443 port) or not" + }, + "connectionRetries": { + "type": "number", + "description": "How many times the reconnection should retry, either on the initial connection or when Telegram disconnects us. May be set to a negative value for infinite retries, but this is not recommended. Defaults to 5" } } }, diff --git a/sample-config-advanced.json b/sample-config-advanced.json index 0cd4dcf63a..2cff146200 100644 --- a/sample-config-advanced.json +++ b/sample-config-advanced.json @@ -628,7 +628,9 @@ "_telegram": { "apiid": 0, "apihash": "xxxxxxxxxxxxxxxxxxxxxxxxxxxx", - "session": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" + "session": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "useWSS": "false", + "connectionRetries": 60 }, "_discord": { "serverurl": "https://discord.gg/xxxxxxxxx",