whatsapp-api-tutorial icon indicating copy to clipboard operation
whatsapp-api-tutorial copied to clipboard

Button dan List tidak berfungsi gan, udah browsing belum dpt solusi!

Open b3nydishub opened this issue 1 year ago • 8 comments

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

b3nydishub avatar Aug 31 '22 06:08 b3nydishub

Diskusi pada link yang disertakan memang masih belum menemukan solusinya, jadi masih menunggu perbaikan library-nya.

ngekoding avatar Aug 31 '22 07:08 ngekoding

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

syahid-dev avatar Aug 31 '22 12:08 syahid-dev

oh iya sudah saya lakukan dan tetap mengalami error

b3nydishub avatar Sep 01 '22 02:09 b3nydishub

oh iya sudah saya lakukan dan tetap mengalami error

Error nya apa?

syahid-dev avatar Sep 01 '22 06:09 syahid-dev

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

b3nydishub avatar Sep 01 '22 07:09 b3nydishub

(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?

azmijuhda avatar Sep 02 '22 03:09 azmijuhda

(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

syahid-dev avatar Sep 02 '22 11:09 syahid-dev

yg bisa kirim button hanya param id ya di #fix-buttons-list ya? belum ada solusi untuk url? @syahid246

mamoru-69 avatar Sep 10 '22 03:09 mamoru-69