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
description: "Send a link with preview in WhatsApp to a specific phone number. [See the documentation](https://www.waboxapp.com/assets/doc/waboxapp-API-v3.pdf)",
7
+
version: "0.0.1",
8
+
type: "action",
9
+
props: {
10
+
waboxapp,
11
+
uid: {
12
+
propDefinition: [
13
+
waboxapp,
14
+
"uid",
15
+
],
16
+
},
17
+
to: {
18
+
propDefinition: [
19
+
waboxapp,
20
+
"to",
21
+
],
22
+
},
23
+
customUid: {
24
+
propDefinition: [
25
+
waboxapp,
26
+
"customUid",
27
+
],
28
+
},
29
+
url: {
30
+
propDefinition: [
31
+
waboxapp,
32
+
"url",
33
+
],
34
+
label: "Link URL",
35
+
description: "URL of the link to send",
36
+
},
37
+
caption: {
38
+
propDefinition: [
39
+
waboxapp,
40
+
"caption",
41
+
],
42
+
},
43
+
description: {
44
+
propDefinition: [
45
+
waboxapp,
46
+
"description",
47
+
],
48
+
},
49
+
urlThumb: {
50
+
propDefinition: [
51
+
waboxapp,
52
+
"urlThumb",
53
+
],
54
+
},
55
+
},
56
+
asyncrun({ $ }){
57
+
constresponse=awaitthis.waboxapp.sendLink({
58
+
$,
59
+
data: {
60
+
uid: this.uid,
61
+
to: this.to,
62
+
custom_uid: this.customUid,
63
+
url: this.url,
64
+
caption: this.caption,
65
+
description: this.description,
66
+
url_thumb: this.urlThumb,
67
+
},
68
+
});
69
+
70
+
$.export("$summary",`Successfully sent link to ${this.to}`);
description: "Send any kind of file in WhatsApp to a specific phone number. [See the documentation](https://www.waboxapp.com/assets/doc/waboxapp-API-v3.pdf)",
7
+
version: "0.0.1",
8
+
type: "action",
9
+
props: {
10
+
waboxapp,
11
+
uid: {
12
+
propDefinition: [
13
+
waboxapp,
14
+
"uid",
15
+
],
16
+
},
17
+
to: {
18
+
propDefinition: [
19
+
waboxapp,
20
+
"to",
21
+
],
22
+
},
23
+
customUid: {
24
+
propDefinition: [
25
+
waboxapp,
26
+
"customUid",
27
+
],
28
+
},
29
+
url: {
30
+
propDefinition: [
31
+
waboxapp,
32
+
"url",
33
+
],
34
+
label: "File URL",
35
+
description: "URL of the file to send",
36
+
},
37
+
caption: {
38
+
propDefinition: [
39
+
waboxapp,
40
+
"caption",
41
+
],
42
+
},
43
+
description: {
44
+
propDefinition: [
45
+
waboxapp,
46
+
"description",
47
+
],
48
+
},
49
+
urlThumb: {
50
+
propDefinition: [
51
+
waboxapp,
52
+
"urlThumb",
53
+
],
54
+
},
55
+
},
56
+
asyncrun({ $ }){
57
+
constresponse=awaitthis.waboxapp.sendMedia({
58
+
$,
59
+
data: {
60
+
uid: this.uid,
61
+
to: this.to,
62
+
custom_uid: this.customUid,
63
+
url: this.url,
64
+
caption: this.caption,
65
+
description: this.description,
66
+
url_thumb: this.urlThumb,
67
+
},
68
+
});
69
+
70
+
$.export("$summary",`Successfully sent media file to ${this.to}`);
0 commit comments