You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23-21Lines changed: 23 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -261,13 +261,10 @@ Placeholders can be added by setting `VARIABLES` inside your Environment.
261
261
```yaml
262
262
environment:
263
263
VARIABLES: |
264
-
"NUMBER2": "002",
265
-
"GROUP_CHAT_1": [
266
-
"user.id",
267
-
"000",
268
-
"001",
269
-
"group.id"
270
-
]
264
+
"NUMBER2": "002",
265
+
"GROUP_CHAT_1": [
266
+
"user.id", "000", "001", "group.id"
267
+
]
271
268
```
272
269
273
270
### Recipients
@@ -292,25 +289,30 @@ example:
292
289
293
290
To improve compatibility with other services Secured Signal API provides aliases for the `message` attribute by default:
294
291
295
-
| Alias | Priority |
296
-
| ----------- | -------- |
297
-
| msg | 100 |
298
-
| content | 99 |
299
-
| description | 98 |
300
-
| text | 20 |
301
-
| body | 15 |
302
-
| summary | 10 |
303
-
| details | 9 |
304
-
| payload | 2 |
305
-
| data | 1 |
292
+
| Alias | Score |
293
+
| ----------- | ----- |
294
+
| msg | 100 |
295
+
| content | 99 |
296
+
| description | 98 |
297
+
| text | 20 |
298
+
| body | 15 |
299
+
| summary | 10 |
300
+
| details | 9 |
301
+
| payload | 2 |
302
+
| data | 1 |
306
303
307
-
Secured Signal API will use the highest priority Message Alias to extract the correct message from the Request Body.
304
+
Secured Signal API will pick the best scoring Message Alias (if available) to extract the correct message from the Request Body.
308
305
309
-
Message Aliases can be added by setting `MESSAGE_ALIASES`:
306
+
Message Aliases can be added by setting `MESSAGE_ALIASES` to a valid json array containing dictionaries of `alias`, the json key to be used for lookup (use `.` dots for using values from a nested dictionary and `[i]` to get values from an array):
0 commit comments