wingbot 3.46.0 → 3.46.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/ReturnSender.js
CHANGED
package/src/resolvers/utils.js
CHANGED
|
@@ -284,9 +284,14 @@ function processButtons (
|
|
|
284
284
|
case TYPE_SHARE:
|
|
285
285
|
elem.shareButton(btnTitleText);
|
|
286
286
|
break;
|
|
287
|
-
case TYPE_ATTACHMENT:
|
|
288
|
-
|
|
287
|
+
case TYPE_ATTACHMENT: {
|
|
288
|
+
const translatedPayloadContent = getText(payload.content, state);
|
|
289
|
+
elem.attachmentButton(btnTitleText, {
|
|
290
|
+
...payload,
|
|
291
|
+
content: translatedPayloadContent
|
|
292
|
+
});
|
|
289
293
|
break;
|
|
294
|
+
}
|
|
290
295
|
default:
|
|
291
296
|
}
|
|
292
297
|
});
|
|
@@ -138,7 +138,8 @@ class ButtonTemplate extends BaseTemplate {
|
|
|
138
138
|
* res.button('text')
|
|
139
139
|
* .attachmentButton('button title', {
|
|
140
140
|
* content: '# Heading 1',
|
|
141
|
-
* contentType: 'text/markdown'
|
|
141
|
+
* contentType: 'text/markdown',
|
|
142
|
+
* className: 'my-class-for-markdown'
|
|
142
143
|
* })
|
|
143
144
|
* .send();
|
|
144
145
|
*
|