Basic changes; no real change

This commit is contained in:
Rajeh Taher
2023-02-19 05:22:36 +02:00
committed by cheveguerra
parent 74a02cb736
commit 2ce2c7e97d
3 changed files with 9 additions and 9 deletions

View File

@@ -7,8 +7,8 @@ const MessageMedia = require('./MessageMedia');
* @typedef {Object} ButtonSpec
* @property {string} body - The text to show on the button.
* @property {string=} id - Custom ID to set on the button. A random one will be generated if one is not passed.
* @ property {string=} url - Custom URL to set on the button. Optional and will change the type of the button
* @ property {string=} number - Custom URL to set on the button. Optional and will change the type of the button
* @property {string=} url - Custom URL to set on the button. Optional and will change the type of the button
* @property {string=} number - Custom URL to set on the button. Optional and will change the type of the button
*/
/**
@@ -79,22 +79,22 @@ class Buttons {
if (button.url && button.number && button.id) throw 'Only pick one of the following (url/number/id)';
if (button.number) {
throw 'Not supported, URL and Call buttons are not supported on IOS';
/* return {
return {
index,
callButton: {
displayText: button.body,
phoneNumber: button.number || ''
}
}; */
};
} else if (button.url) {
throw 'Not supported, URL and Call buttons are not supported on IOS';
/* return {
return {
index,
urlButton: {
displayText: button.body,
url: button.url || ''
}
}; */
};
} else {
return {
index,