From 68686165c39a479864032c52c7788b2f70b28ced Mon Sep 17 00:00:00 2001 From: Smidy13 <77650800+Smidy13@users.noreply.github.com> Date: Mon, 12 Apr 2021 23:06:13 +1200 Subject: [PATCH] Social Bots Documentation Update --- .../Schemas/Docs-Nodes/social-bots.json | 18 +++++- .../Schemas/Docs-Nodes/telegram-bot.json | 58 ++++++++++++++++++- 2 files changed, 74 insertions(+), 2 deletions(-) diff --git a/Projects/Superalgos/Schemas/Docs-Nodes/social-bots.json b/Projects/Superalgos/Schemas/Docs-Nodes/social-bots.json index e9d16292a..cf564cab2 100644 --- a/Projects/Superalgos/Schemas/Docs-Nodes/social-bots.json +++ b/Projects/Superalgos/Schemas/Docs-Nodes/social-bots.json @@ -1,3 +1,19 @@ { - "type": "Social Bots" + "type": "Social Bots", + "paragraphs": [ + { + "style": "Text", + "text": "The Social Bots node contains children nodes for each messaging bot. These messaging bots are used to configure the third party applications used to send announcements and receive incoming commands.", + "updated": 1618221943424 + }, + { + "style": "Note", + "text": "At present Superalgos only supports the Telegram messaging application.", + "updated": 1618221056200 + } + ], + "definition": { + "text": "A Social Bots node is used to define the bots for each messaging application. These messaging bots are used to send announcements and receive commands used to interact with Superalgos.", + "updated": 1618222853055 + } } \ No newline at end of file diff --git a/Projects/Superalgos/Schemas/Docs-Nodes/telegram-bot.json b/Projects/Superalgos/Schemas/Docs-Nodes/telegram-bot.json index 660294d53..7c79e785c 100644 --- a/Projects/Superalgos/Schemas/Docs-Nodes/telegram-bot.json +++ b/Projects/Superalgos/Schemas/Docs-Nodes/telegram-bot.json @@ -1,3 +1,59 @@ { - "type": "Telegram Bot" + "type": "Telegram Bot", + "paragraphs": [ + { + "style": "Text", + "text": "The Telegram Bot node is used to define the botToken and chatId parameters which are required by Superalgos to interact with the Telegram API.", + "updated": 1618224117691 + }, + { + "style": "Text", + "text": "The botToken parameter is provided by the Telegram Bot @BotFather. It is a 10 digit number, followed by a colon and then a 35 character (alpha-numeric but can also containing dash - and underscore _) string.", + "updated": 1618224138149 + }, + { + "style": "Text", + "text": "It should be contained within quotes." + }, + { + "style": "Text", + "text": "Example:", + "updated": 1618223886054 + }, + { + "style": "Javascript", + "text": "\"1234567890:aBCdE_FG4hij0kLMnoP9qrsTUvw25-xyz31\"", + "updated": 1618223916419 + }, + { + "style": "Text", + "text": "The chatId parameter is provided by the Telegram Bot @myidbot using the /getgroupid command. It is a negative 9 digit numeric number. It should be entered without quotes.", + "updated": 1618224061206 + }, + { + "style": "Text", + "text": "Example:" + }, + { + "style": "Javascript", + "text": "-123456789" + }, + { + "style": "Subtitle", + "text": "Example Configuration" + }, + { + "style": "Javascript", + "text": "{\n\t\"botToken\": \"1234567890:aBCdE_FG4hij0kLMnoP9qrsTUvw25-xyz31\",\n\t\"chatId\": -123456789\n }", + "updated": 1618224233921 + }, + { + "style": "Text", + "text": "" + } + ], + "definition": { + "text": "The Telegram Bot node is used to define the parameters used to connect to the Telegram API. This allows Superalgos to interact with Telegram to send announcements and receive incoming commands.", + "updated": 1618220722404 + } } \ No newline at end of file