Compare commits

...
5 Commits
Author SHA1 Message Date
allburov ac865abe67 Send a message to group
Release / deploy-docker (push) Waiting to run
fix #16
2022-09-26 13:25:09 +07:00
allburov 0b4e8e31fb Add more screenshots 2022-09-17 15:27:36 +07:00
allburov 3695c5c25f Merge remote-tracking branch 'origin/main' into main 2022-09-17 15:21:48 +07:00
Aleksey Burov eaea661be2 Just 2 options 2022-08-22 19:23:09 +07:00
Aleksey Burov 2a5d5e9d13 Add direct support link to boosty 2022-08-22 18:42:05 +07:00
5 changed files with 10 additions and 10 deletions

No files matched your search

+9 -9
View File
@@ -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
![](./docs/images/session-start.png)
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!
![](./docs/screenshot.png)
![](./docs/images/qr.png)
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!
![](./docs/images/screenshot.png)
## 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

+1 -1
View File
@@ -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