whatsapp-api-tutorial
whatsapp-api-tutorial copied to clipboard
Button dan List tidak berfungsi gan, udah browsing belum dpt solusi!
Sebagai preview saya memakai kode ini
else if (msg.body === '!buttons') { let button = new Buttons('Button body',[{body:'bt1'},{body:'bt2'},{body:'bt3'}],'title','footer'); client.sendMessage(msg.from, button);
tapi tidak berjalan meskipun di whatsapp biasa maupun whatsapp bisnis sudah mencoba menyimak ini https://github.com/pedroslopez/whatsapp-web.js/pull/1636 namun semua yang disajikan di sana ndak work dan gagal menampilkan tombol maupun list
ada solusi project yang bisa menampilkan tombol gan? saya udah coba di node 16.xx maupun node 14.xx dan tetap tidak bisa berfungsi
terima kasih
Diskusi pada link yang disertakan memang masih belum menemukan solusinya, jadi masih menunggu perbaikan library-nya.
Apakah sudah menjalankan perintah ini?
- NPM:
npm i github:pedroslopez/whatsapp-web.js#fix-buttons-list
- Yarn:
yarn add github:pedroslopez/whatsapp-web.js#fix-buttons-list
Di saya lancar tetapi tidak bisa kirim button berupa url
oh iya sudah saya lakukan dan tetap mengalami error
oh iya sudah saya lakukan dan tetap mengalami error
Error nya apa?
oh iya sudah saya lakukan dan tetap mengalami error
Error nya apa?
tentu saja button tidak mau muncul di whatsapp bisnis list juga ndak bisa terkirim
(node:27888) UnhandledPromiseRejectionWarning: URL buttons are not supported yet (Use
node --trace-warnings ...to show where the warning was created) (node:27888) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag
--unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:27888) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
error seperti berikut ketka megirim button/list ada solusi?
(node:27888) UnhandledPromiseRejectionWarning: URL buttons are not supported yet (Use
node --trace-warnings ...to show where the warning was created) (node:27888) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag
--unhandled-rejections=strict(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:27888) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
error seperti berikut ketka megirim button/list ada solusi?
URL buttons sudah tidak bisa jika memakai branch pedroslopez/whatsapp-web.js#fix-buttons-list
yg bisa kirim button hanya param id ya di #fix-buttons-list ya? belum ada solusi untuk url? @syahid246