XMPP documentation fix.
Ylian Saint-Hilaire committed
Oct 28, 2022 at 12:40 UTC
b9aace76fc93c8a85a8869cfd8ac86954b2fa3e8
2 files changed
+27
-27
docs/docs/messaging/index.md
+5
-5
@@ -34,7 +34,7 @@ Note the "messaging" section in the config.json. For Telegram user login, it loo
34
{
35
"messaging": {
36
"telegram": {
37
- "apiid": 00000000,
37
+ "apiid": 0,
38
"apihash": "00000000000000000000000",
39
"session": "aaaaaaaaaaaaaaaaaaaaaaa"
40
}
@@ -88,10 +88,10 @@ For XMPP integration, you need to provide MeshCentral with a XMPP server, userna
88
{
89
"messaging": {
90
"xmpp": {
91
- service: "xmppserver.com",
92
- credentials: {
93
- username: 'username',
94
- password: 'password'
91
+ "service": "xmppserver.com",
92
+ "credentials": {
93
+ "username": "username",
94
+ "password": "password"
95
}
96
}
97
}
meshmessaging.js
+22
-22
@@ -17,41 +17,41 @@
17
/*
18
// For Telegram user login, add this in config.json
19
"messaging": {
20
- "telegram": {
21
- "apiid": 00000000,
22
- "apihash": "00000000000000000000000",
23
- "session": "aaaaaaaaaaaaaaaaaaaaaaa"
24
- }
20
+ "telegram": {
21
+ "apiid": 00000000,
22
+ "apihash": "00000000000000000000000",
23
+ "session": "aaaaaaaaaaaaaaaaaaaaaaa"
24
+ }
25
}
26
27
// For Telegram bot login, add this in config.json
28
"messaging": {
29
- "telegram": {
30
- "apiid": 00000000,
31
- "apihash": "00000000000000000000000",
32
- "bottoken": "00000000:aaaaaaaaaaaaaaaaaaaaaaaa"
33
- }
29
+ "telegram": {
30
+ "apiid": 00000000,
31
+ "apihash": "00000000000000000000000",
32
+ "bottoken": "00000000:aaaaaaaaaaaaaaaaaaaaaaaa"
33
+ }
34
}
35
36
// For Discord login, add this in config.json
37
"messaging": {
38
- "discord": {
39
- "inviteurl": "https://discord.gg/xxxxxxxxx",
40
- "token": "xxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxxx"
41
- }
38
+ "discord": {
39
+ "inviteurl": "https://discord.gg/xxxxxxxxx",
40
+ "token": "xxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxxx"
41
+ }
42
}
43
44
// For XMPP login, add this in config.json
45
-"messaging": {
45
+{
46
+ "messaging": {
47
"xmpp": {
47
- service: "xmppserver.com",
48
- //domain: "xmppserver.com",
49
- //resource: "example",
50
- credentials: {
51
- username: 'username',
52
- password: 'password'
53
- }
48
+ "service": "xmppserver.com",
49
+ "credentials": {
50
+ "username": "username",
51
+ "password": "password"
52
+ }
53
}
54
+ }
55
}
56
*/
57