Comments (6)
This possibility is missing, but we could implement it in the future service version.
from whatsapp-api.
Is it possible to send a message to multiple numbers with just one api call? Or is there any other way to, if sending the same file multiple times, not have to download the whole file every time?
In the case of sending files, you can send the message and the file to yourself and then forward it to any other person or group. It will not appear to them that it is a forworded message because it is actually your message.
from whatsapp-api.
Is it possible to send a message to multiple numbers with just one api call? Or is there any other way to, if sending the same file multiple times, not have to download the whole file every time?
In the case of sending files, you can send the message and the file to yourself and then forward it to any other person or group. It will not appear to them that it is a forworded message because it is actually your message.
That's a good call. However, when I try to use message/forward, it gives me
{
"success": false,
"error": "Message not Found"
}
despite me giving it a correct message ID. The body is supposed to look like this, right?
{ "chatId": "[email protected]", "messageId": "messageId fetched from saved messages" }
from whatsapp-api.
Is it possible to send a message to multiple numbers with just one api call? Or is there any other way to, if sending the same file multiple times, not have to download the whole file every time?
In the case of sending files, you can send the message and the file to yourself and then forward it to any other person or group. It will not appear to them that it is a forworded message because it is actually your message.
That's a good call. However, when I try to use message/forward, it gives me
{ "success": false, "error": "Message not Found" }
despite me giving it a correct message ID. The body is supposed to look like this, right?
{ "chatId": "[email protected]", "messageId": "messageId fetched from saved messages" }
please open new issue about sending file @mahmoudgoogle
from whatsapp-api.
This possibility is missing, but we could implement it in the future service version.
how we can use delay
props in sendMessage?
from whatsapp-api.
Hello,
I'm having the same issue.
For documentation purposes, here is my attempt.
I have executed the following command to fetch the last message that a number sent to the container:
$Uri = 'http://10.xx.xx.xx:3000/chat/fetchMessages/xxxxx'
$Form = @{
chatId='[email protected]'
}
$Result = Invoke-RestMethod -Uri $Uri -Method 'Post' -Body $Form
$Result.messages[-1].id
Where I get the result:
fromMe : False
remote : [email protected]
id : xxxxxxxx2F3AFC186D283918xxxxxxxx
_serialized : [email protected]_xxxxxxxx2F3AFC186D283918xxxxxxxx
Then I proceeded to make another request to forward that message to another user with:
$Uri = 'http://10.xx.xx.xx:3000/message/forward/xxxxx'
$Form = @{
chatId='[email protected]'
messageId='xxxxxxxx2F3AFC186D283918xxxxxxxx'
}
$Result = Invoke-RestMethod -Uri $Uri -Method 'Post' -Body $Form
Where I get the result:
Invoke-RestMethod : {"success":false,"error":"Message not Found"}
At line:6 char:11
+ $Result = Invoke-RestMethod -Uri $Uri -Method 'Post' -Body $Form
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
I think I'm using the API correctly yet something feels off.
I have tested the last request with the id
and the _serialized
results in the messageId parameter and keep getting the same error.
Can anyone guide me to a solution? Any help is much apreciated.
Please don't judge me about Powershell 😅
from whatsapp-api.
Related Issues (20)
- Strange errors and operations HOT 6
- "Set messages automatically as read" not working HOT 2
- Send messages with Buttons or List do not working HOT 2
- Cannot send message to Group (invalid wid) HOT 1
- Qr Code auto appears after session initiated HOT 1
- facing issue in new version in ubuntu server HOT 1
- Session Success but close again HOT 4
- Evaluation failed: TypeError: window.Store.ProfilePic.profilePicFind is not a function HOT 3
- Integration with WhiskeySockets/Baileys (question) HOT 2
- Difficulty Sending PDF Files via API: Seeking Assistanc HOT 2
- Send Message Type Location HOT 5
- break line whatsapp character HOT 2
- "error": "Invalid API key" and "error": "Some server error" HOT 6
- Could you please add remote authentication using s3 HOT 2
- could you implement a method to restart the session when its recovery does not go as planned HOT 2
- Add ability to send stickers HOT 2
- Ubuntu Docker or Local version HOT 2
- Session behaviour is broken
- Memory Leakage?
- Unnable to connect whatsapp
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from whatsapp-api.