add extra telegram options to docs/config #5587
Signed-off-by: si458 <simonsmith5521@gmail.com>
si458 committed
Nov 27, 2023 at 15:14 UTC
b17d04ddc53cfe75a550a741814cbab0efe62fc4
3 files changed
+19
-1
docs/docs/meshcentral/config.md
+8
@@ -3368,6 +3368,14 @@ See description for information about each item.
3368
},
3369
"session": {
3370
"type": "string"
3371
+ },
3372
+ "useWSS": {
3373
+ "type": "boolean",
3374
+ "description": "Whether to try to connect over Wss (or 443 port) or not"
3375
+ },
3376
+ "connectionRetries": {
3377
+ "type": "number",
3378
+ "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"
3379
}
3380
}
3381
},
meshcentral-config-schema.json
+8
@@ -3361,6 +3361,14 @@
3361
},
3362
"session": {
3363
"type": "string"
3364
+ },
3365
+ "useWSS": {
3366
+ "type": "boolean",
3367
+ "description": "Whether to try to connect over Wss (or 443 port) or not"
3368
+ },
3369
+ "connectionRetries": {
3370
+ "type": "number",
3371
+ "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"
3372
}
3373
}
3374
},
sample-config-advanced.json
+3
-1
@@ -628,7 +628,9 @@
628
"_telegram": {
629
"apiid": 0,
630
"apihash": "xxxxxxxxxxxxxxxxxxxxxxxxxxxx",
631
- "session": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
631
+ "session": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
632
+ "useWSS": "false",
633
+ "connectionRetries": 60
634
},
635
"_discord": {
636
"serverurl": "https://discord.gg/xxxxxxxxx",