waha icon indicating copy to clipboard operation
waha copied to clipboard

Feature request - /forwardMessages - api end point to forward multiple messages to specific number.

Open ehussain opened this issue 2 years ago • 2 comments

Hello,

We are looking for end point where we can send the message ids and chatId to forward messages.

Sample request.

{
    "chatId": "[email protected]"
    "messageIds": [
        "[email protected]_3EB0E64C08B9F394XX3E0",
        "[email protected]_3AFBDF13XXXXX6B5B05",
    ]
}

chatId - is phone number where message should be forwarded messageIds - is array of message ids which should be forwarded

Response could be anything which indicates success.

ehussain avatar Aug 09 '23 05:08 ehussain

UP - Got one more request about forwarding, will look at this soon

patron:PRO

devlikepro avatar Jun 11 '24 04:06 devlikepro

any update for this ?

hasanbasri1993 avatar Oct 05 '24 02:10 hasanbasri1993

In 2024.11.1 will be available - POST /api/forwardMessage

{
  "chatId": "[email protected]",
  "messageId": "[email protected]_AAAAAAAAAAAAAAAAAAAA",
  "session": "default"
}

in case of NOWEB it'll return the message it sent, but in WEBJS just sent: true for now, we'll fix it later in https://github.com/devlikeapro/waha/issues/588 (may be before releasing it, but we'll see)

patron:PRO

devlikepro avatar Oct 13 '24 09:10 devlikepro

https://waha.devlike.pro/docs/how-to/send-messages/#forward-message For both WEBJS and NOWEB in 2024.10.5


Forward Message

You can forward a message to another chat (that you chatted before, otherwise it may fail):

POST /api/forwardMessage
{
  "chatId": "[email protected]",
  "messageId": "[email protected]_AAAAAAAAAAAAAAAAAAAA",
  "session": "default"
}

patron:PRO

devlikepro avatar Oct 16 '24 09:10 devlikepro