Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This is to include the New Send Message 1 #51

Merged
merged 1 commit into from
Apr 26, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ Underneath alright is **Selenium** which is one does all the automation work by

## What you can do with alright?

- [Send Messages](#sending-messages)
- [Send Messages](#sending-messages: IF you have the desktop WhatsApp app installed, then this call will cause problems, Use SendMessage 1)
- [Send Messages1](#sending-messages BUT not opening the Desktop App)
- [Send Images](#sending-images)
- [Send Videos](#sending-videos)
- [Send Documents](#sending-documents)
Expand Down Expand Up @@ -117,6 +118,20 @@ To send a message with alright, you first need to target a specific user by usin
messenger.send_message(message)
```

### Sending Messages 1

This Send Message does NOT find the user first like in the above Send Message, AND it does work even if you have the Desktop WhatsApp app installed
include the **country code** in your number withour '+' symbol as shown in the example below;

```python
>>> from alright import WhatsApp
>>> messenger = WhatsApp()
>>> messages = ['Morning my love', 'I wish you a good night!']
>>> mobNum = 27792346512
>>> for message in messages:
messenger.send_message1(mobNum, msg)
```

#### Multiple numbers

Here how to send a message to multiple users, Let's say we want to wish merry-x mass to all our contacts, our code is going to look like this;
Expand Down