open-wa / wa-automate-nodejs

💬 🤖 The most reliable tool for chatbots with advanced features. Be sure to 🌟 this repository for updates!
https://docs.openwa.dev/
Other
3.08k stars 592 forks source link

add custom reply messages #1349

Closed JonazBR closed 3 years ago

JonazBR commented 3 years ago

add custom reply messages like the baileys example: quoted: quotedMessage, contextInfo: { forwardingScore: 2, isForwarded: true }, // some random context info (can show a forwarded message with this too) timestamp: Date(), // optional, if you want to manually set the timestamp of the message caption: "hello there!", // (for media messages) the caption to send with the media (cannot be sent with stickers though) thumbnail: "23GD#4/==", /*

smashah commented 3 years ago

This is a duplicate of #1198

Nobody has given me a good enough reason to implement this feature that may be abused to put words in people's mouths - so there's little chance this will be implemented.

JonazBR commented 3 years ago

I would just use this function to put a message with my number it would be a very useful function that many bot that uses baileys have

smashah commented 3 years ago

Another library has it therefore this one should also have it? Doesn't sound like a good enough reason to counteract my concerns over abuse. If you'd like to reply to your own messages then I suggest

  1. Sending yourself the message, grab the ID
  2. Use that ID with ghostForward with your comment.

That way your use case of replying to your own non-existent messages are fulfilled and nobody can spoof messages from anyone else

Thanks