mirror of
https://github.com/cheveguerra/whatsapp-web.js.git
synced 2026-04-19 12:09:15 +00:00
Update Buttons.js
This commit is contained in:
@@ -78,7 +78,7 @@ class Buttons {
|
|||||||
return buttons.map((button, index) => {
|
return buttons.map((button, index) => {
|
||||||
if (button.url && button.number && button.id) throw 'Only pick one of the following (url/number/id)';
|
if (button.url && button.number && button.id) throw 'Only pick one of the following (url/number/id)';
|
||||||
if (button.number) {
|
if (button.number) {
|
||||||
throw 'number buttons are not supported yet';
|
throw 'Not supported, URL and Call buttons are not supported on IOS';
|
||||||
/* return {
|
/* return {
|
||||||
index,
|
index,
|
||||||
callButton: {
|
callButton: {
|
||||||
@@ -87,7 +87,7 @@ class Buttons {
|
|||||||
}
|
}
|
||||||
}; */
|
}; */
|
||||||
} else if (button.url) {
|
} else if (button.url) {
|
||||||
throw 'URL buttons are not supported yet';
|
throw 'Not supported, URL and Call buttons are not supported on IOS';
|
||||||
/* return {
|
/* return {
|
||||||
index,
|
index,
|
||||||
urlButton: {
|
urlButton: {
|
||||||
|
|||||||
Reference in New Issue
Block a user