-
-
Notifications
You must be signed in to change notification settings - Fork 219
Usage
whatsapp-play is having many different options for performing different tasks. These are:-
__
_ ______ / /___ ___ __
| | /| / / __ \/ / __ `/ / / /
| |/ |/ / /_/ / / /_/ / /_/ /
|__/|__/ .___/_/\__,_/\__, /
/_/ /____/
usage: wplay [-h] [-s SENDER] [-r RECEIVER]
(-wc | -wi | -wpd | -wms | -wb | -wti | -wt | -wtb | -wsc | -ws | -wa | -wgn | -wgp | -wbc | -wtf | -wd)
[TARGET]
WhatsApp-play
positional arguments:
TARGET contact or group name, optional, target can be
selected manually except for saving chat
optional arguments:
-h, --help show this help message and exit
-s SENDER, --sender SENDER
contact or group name
-r RECEIVER, --receiver RECEIVER
contact or group name
-wc, --terminal-chat chatting from command line
-wi, --chat-intermediator
Be an Intermediator from command line -wi -s <sender>
-r <receiver>
-wpd, --profile-download
Download the peofile picture of target
-wms, --message-service
send messages from a JSON file
-wb, --message-blast message blast to a person
-wti, --message-timer
send messages from time to time
-wt, --online-tracker
track online status of person
-wtb, --telegram-bot sends tracking status to telegram bot
-wsc, --save-chat save all chats from Google Drive, target is necessary
-ws, --schedule-message
send the message at scheduled time
-wa, --about-changer Changes the about section
-wgn, --get-news Get news in whatsapp group
-wgp, --get-profile-photos
Get profile photo of all your contacts
-wbc, --broadcast Broadcast message
-wtf, --target-info finds the information about target's contact
-wd, --download-media
Download the media of the target's contact
$ wplay <option> <target_name>
NOTE: Target name should be written exact as it is save in the contact list.
wplay -wc "<target_name>"
Through this command, the user can directly do chatting with their command line.
wplay -wms
It's a substitute for the API, allow you to communicate your programs to wplay. You modify our file messages.json with the number and message and the service will read the JSON and send the message.
The file "messages.json" is located at user/wplay/messagesJSON folder.
Messages file structure:
- uuid: uuid based on time, to make the message unique.
- number: must be a full number with country code.
- message: You can use [] for multi-line message or just " " for single-line message.
{
"messages": [
{
"uuid": "33bf7c667f8011ea96971c3947562893",
"number": "5562999999999",
"message": "*Bold Hello World*"
},
{
"uuid": "46ca6d284f8058ee89354e2987862869",
"number": "5562888888888",
"message": ["Hello!!!","Multi-line"]
}
]
}
In conclusion, your program needs to attach within "messages": [] the message, append example:
{
"uuid": "33bf7c667f8011ea96971c3947562893",
"number": "5562999999999",
"message": "*Bold Hello World*"
}
$ wplay -wb "<target_name>"
Through this command, the user can blast many messages to the target at the same time.
$ wplay -wt "<target_name>"
Through this command, the user can track the target person at the current time until the script is terminated.
Example
$ wplay -wt "abc" #command for tracking
Then session manager ask for selecting a option. Choose a option according to your need
? ***Session Manager***: Continue without saving
Then it chromium-browser will be open ask to scan the QR code. Scan QR code with your whatsapp app.
Looking for: abc
Contacts found:
0: abc
Enter the number of the target you wish to choose: 0 # select the number of target from the above list
You've selected the target named by: abc
Tracking: abc
29/02/2020, 22:14:31 - Status: offline
$ wplay -wtb "<target_name>"
Through this command, the user can send the tracking status report to their personal telegram bot.
$ wplay -pull "Databases/msgstore.db.crypt12"
Through this command, the user can save all the chats of all persons.
$ wplay -wti "<target_name>"
Through this command, the user can send messages to the target person from time to time.
$ wplay -ws "<target_name>"
Through this command, the user can send message at a schedule time.
$ wplay -wa
Through this command, the user can change his/her about section by his/her choice like quotes, news, etc.
The changeAbout script uses a news api. For fetching content from the api, you need to generate an api key from here. After getting the api key you need to create a .env
file and then place this key in .env
file as NEWS_API_KEY=YOUR KEY
. Now you simple need to run the script:
$ python3 -m wplay -a
- The script will then prompt the user to input
news's theme
. The news can be related to any keyword. For example - Football, Bitcoin etc. You can also specify the category of the news(eg. Business, Sports etc). - The script will then change your about section automatically on every latest news fetched from the api related to your input.
$ wplay -wgn <group_name>
Through this command, the user can send top news in a group.
$ wplay -wgp
Through this command, the software will download all the profile photos of all the contacts.
$ wplay -bc
Through this command, the software will able to send a broadcase message to all the selected users.
$ wplay -wtf <target_name>
Through this command, the software will get all the information of person present on whatsapp.
$ wplay -wd <target_name>
Through this command, the software will all the media present in the chat of the target person.