sim-node-lib 0.4.66 → 0.4.68
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.
|
@@ -38,8 +38,8 @@ class GoogleChatMessageBuilder {
|
|
|
38
38
|
return this;
|
|
39
39
|
}
|
|
40
40
|
addButton(text, actionURL) {
|
|
41
|
-
const
|
|
42
|
-
|
|
41
|
+
const buttonList = {
|
|
42
|
+
buttonList: {
|
|
43
43
|
buttons: [
|
|
44
44
|
{
|
|
45
45
|
text: text,
|
|
@@ -53,7 +53,7 @@ class GoogleChatMessageBuilder {
|
|
|
53
53
|
},
|
|
54
54
|
};
|
|
55
55
|
const section = {
|
|
56
|
-
widgets: [
|
|
56
|
+
widgets: [buttonList],
|
|
57
57
|
};
|
|
58
58
|
if (!this.message.cardsV2 || this.message.cardsV2.length === 0) {
|
|
59
59
|
throw new Error('Nenhum card criado. Adicione um card antes de adicionar um botão.');
|