From b9aace76fc93c8a85a8869cfd8ac86954b2fa3e8 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Fri, 28 Oct 2022 12:40:52 -0700 Subject: [PATCH] XMPP documentation fix. --- docs/docs/messaging/index.md | 10 ++++---- meshmessaging.js | 44 ++++++++++++++++++------------------ 2 files changed, 27 insertions(+), 27 deletions(-) diff --git a/docs/docs/messaging/index.md b/docs/docs/messaging/index.md index 5d9a8b06..1de44563 100644 --- a/docs/docs/messaging/index.md +++ b/docs/docs/messaging/index.md @@ -34,7 +34,7 @@ Note the "messaging" section in the config.json. For Telegram user login, it loo { "messaging": { "telegram": { - "apiid": 00000000, + "apiid": 0, "apihash": "00000000000000000000000", "session": "aaaaaaaaaaaaaaaaaaaaaaa" } @@ -88,10 +88,10 @@ For XMPP integration, you need to provide MeshCentral with a XMPP server, userna { "messaging": { "xmpp": { - service: "xmppserver.com", - credentials: { - username: 'username', - password: 'password' + "service": "xmppserver.com", + "credentials": { + "username": "username", + "password": "password" } } } diff --git a/meshmessaging.js b/meshmessaging.js index a7770ae2..cbe308b8 100644 --- a/meshmessaging.js +++ b/meshmessaging.js @@ -17,41 +17,41 @@ /* // For Telegram user login, add this in config.json "messaging": { - "telegram": { - "apiid": 00000000, - "apihash": "00000000000000000000000", - "session": "aaaaaaaaaaaaaaaaaaaaaaa" - } + "telegram": { + "apiid": 00000000, + "apihash": "00000000000000000000000", + "session": "aaaaaaaaaaaaaaaaaaaaaaa" + } } // For Telegram bot login, add this in config.json "messaging": { - "telegram": { - "apiid": 00000000, - "apihash": "00000000000000000000000", - "bottoken": "00000000:aaaaaaaaaaaaaaaaaaaaaaaa" - } + "telegram": { + "apiid": 00000000, + "apihash": "00000000000000000000000", + "bottoken": "00000000:aaaaaaaaaaaaaaaaaaaaaaaa" + } } // For Discord login, add this in config.json "messaging": { - "discord": { - "inviteurl": "https://discord.gg/xxxxxxxxx", - "token": "xxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxxx" - } + "discord": { + "inviteurl": "https://discord.gg/xxxxxxxxx", + "token": "xxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxxx" + } } // For XMPP login, add this in config.json -"messaging": { +{ + "messaging": { "xmpp": { - service: "xmppserver.com", - //domain: "xmppserver.com", - //resource: "example", - credentials: { - username: 'username', - password: 'password' - } + "service": "xmppserver.com", + "credentials": { + "username": "username", + "password": "password" + } } + } } */