added possibility to escape formatting characters

see #562
This commit is contained in:
Bernhard B
2024-12-24 23:05:22 +01:00
parent 3d51571385
commit a70c2994c3
6 changed files with 61 additions and 8 deletions

View File

@@ -2014,7 +2014,7 @@ const docTemplate = `{
},
"/v2/send": {
"post": {
"description": "Send a signal message. Set the text_mode to 'styled' in case you want to add formatting to your text message. Styling Options: *italic text*, **bold text**, ~strikethrough text~.",
"description": "Send a signal message. Set the text_mode to 'styled' in case you want to add formatting to your text message. Styling Options: *italic text*, **bold text**, ~strikethrough text~. If you want to escape a character, prefix it with two backslashes ('\\\\')",
"consumes": [
"application/json"
],

View File

@@ -2011,7 +2011,7 @@
},
"/v2/send": {
"post": {
"description": "Send a signal message. Set the text_mode to 'styled' in case you want to add formatting to your text message. Styling Options: *italic text*, **bold text**, ~strikethrough text~.",
"description": "Send a signal message. Set the text_mode to 'styled' in case you want to add formatting to your text message. Styling Options: *italic text*, **bold text**, ~strikethrough text~. If you want to escape a character, prefix it with two backslashes ('\\\\')",
"consumes": [
"application/json"
],

View File

@@ -1754,7 +1754,8 @@ paths:
- application/json
description: 'Send a signal message. Set the text_mode to ''styled'' in case
you want to add formatting to your text message. Styling Options: *italic
text*, **bold text**, ~strikethrough text~.'
text*, **bold text**, ~strikethrough text~. If you want to escape a character,
prefix it with two backslashes (''\\'')'
parameters:
- description: Input Data
in: body