Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ac865abe67 | ||
|
|
0b4e8e31fb | ||
|
|
3695c5c25f | ||
|
|
eaea661be2 | ||
|
|
2a5d5e9d13 |
No files matched your search
@@ -42,14 +42,16 @@ support ([yet](https://github.com/allburov/whatsapp-http-api/issues/4)) authoriz
|
||||
1. To start a new session you should have your mobile phone with installed WhatsApp application close to you. Please go
|
||||
and read how what we'll need to a bit
|
||||
later: [How to log in - the instruction on WhatsApp site](https://faq.whatsapp.com/381777293328336/?helpref=hc_fnav)
|
||||
2. Open API documentation at http://localhost:3000/
|
||||
2. **Start a new session with a name** (you can use `default` for the start) - find `POST /api/session/start`, click
|
||||
1. Open API documentation at http://localhost:3000/
|
||||
1. **Start a new session with a name** (you can use `default` for the start) - find `POST /api/session/start`, click
|
||||
on **Try it out**, then **Execute** a bit below.
|
||||
3. **Scan QR Code** - find `GET /api/screenshot` and execute it, it'll show you QR code that you must scan with your
|
||||

|
||||
1. **Scan QR Code** - find `GET /api/screenshot` and execute it, it'll show you QR code that you must scan with your
|
||||
device.
|
||||
4. **Get a screenshot** from Whatsapp again! It'll show you the screenshot of you Whatsapp instance.
|
||||
5. If you can get the actual screenshot - then you're ready to start sending messages!
|
||||

|
||||

|
||||
1. **Get a screenshot again** - it'll show you the screenshot of you Whatsapp instance. If you can get the actual
|
||||
screenshot - then you're ready to start sending messages!
|
||||

|
||||
|
||||
## Send a text message
|
||||
|
||||
@@ -140,7 +142,5 @@ All webhooks are disabled by default:
|
||||
If you want to support the project - you can either:
|
||||
|
||||
1. Create a Pull Request for desired functionality
|
||||
2. Support [the project one time](https://boosty.to/allburov/single-payment/post/e7db2841-5b53-4e5e-bb37-e0fdcbab8d2b)
|
||||
3. Support [the project every month](https://boosty.to/allburov/purchase/1015878)
|
||||
4. Support [the project and get access to private telegram channel](https://boosty.to/allburov/purchase/1015879)
|
||||
2. Support [the project one time, every month or get access to telegram channel on Boosty](https://boosty.to/allburov)
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 59 KiB |
File renamed without changes.
Binary file not shown.
|
After Width: | Height: | Size: 42 KiB |
@@ -288,7 +288,7 @@ const SUFFIX_DIRECT_MESSAGE = "@c.us"
|
||||
* @param phone
|
||||
*/
|
||||
export function ensureSuffix(phone) {
|
||||
if (phone.endsWith(SUFFIX_DIRECT_MESSAGE)) {
|
||||
if (phone.includes("@")) {
|
||||
return phone
|
||||
}
|
||||
return phone + SUFFIX_DIRECT_MESSAGE
|
||||
|
||||
Reference in new issue
Block a user