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 an SMS message. The message will be sent to the phone numbers you specify. [See the documentation](https://static.altiria.com/especificaciones/altiria_push_rest.pdf).",
7
+
type: "action",
8
+
version: "0.0.1",
9
+
props: {
10
+
app,
11
+
destination: {
12
+
type: "string[]",
13
+
label: "Destination Phone Numbers",
14
+
description: "The phone numbers to which the message will be sent. Each number will be specified in international numbering format without the prefix `00` or the sign `+`. Eg: `34645852126`. It is essential to include the country prefix (`34` for Spain) so that the message reaches the expected destination. It must not exceed 16 digits. In any case, it is recommended not to exceed **100** phone numbers per request.",
15
+
},
16
+
msg: {
17
+
type: "string",
18
+
label: "Message",
19
+
description: "Message to send. The list of valid characters and the maximum allowed length is detailed in section 2.4 of the [documentation](https://static.altiria.com/especificaciones/altiria_push_rest.pdf). It cannot be empty (empty string). Mobile web identifiers can be added to generate unique shortened links in the message body. See section 2.5 for more details on mobile webs.",
20
+
},
21
+
},
22
+
methods: {
23
+
sendSms(args={}){
24
+
returnthis.app.post({
25
+
path: "/sendSms",
26
+
...args,
27
+
});
28
+
},
29
+
},
30
+
asyncrun({ $ }){
31
+
const{
32
+
sendSms,
33
+
destination,
34
+
msg,
35
+
}=this;
36
+
37
+
constresponse=awaitsendSms({
38
+
$,
39
+
data: {
40
+
destination,
41
+
message: {
42
+
msg,
43
+
},
44
+
},
45
+
});
46
+
47
+
$.export("$summary","Successfully sent SMS message.");
description: "Sends a bot message to a group channel. [See the documentation](https://sendbird.com/docs/chat/platform-api/v3/bot/sending-a-bot-message/send-a-bot-message)",
7
+
version: "0.0.1",
8
+
type: "action",
9
+
props: {
10
+
sendbird,
11
+
botId: {
12
+
propDefinition: [
13
+
sendbird,
14
+
"botId",
15
+
],
16
+
},
17
+
channelUrl: {
18
+
propDefinition: [
19
+
sendbird,
20
+
"channelUrl",
21
+
],
22
+
},
23
+
message: {
24
+
type: "string",
25
+
label: "Message",
26
+
description: "Specifies the content of the message sent by the bot",
27
+
},
28
+
},
29
+
asyncrun({ $ }){
30
+
constresponse=awaitthis.sendbird.sendBotMessage({
31
+
$,
32
+
botId: this.botId,
33
+
data: {
34
+
channel_url: this.channelUrl,
35
+
message: this.message,
36
+
},
37
+
});
38
+
if(response?.message?.message_id){
39
+
$.export("$summary",`Successfully sent message with ID: ${response.message.message_id}`);
0 commit comments