A libary to automate python sending messages
Project description
A simple python libary to send messages via whatsapp Will be updated multiple times in the future Written in Python 3
Functions:
Replace number with the phone number in the format of countrycode+number (Do not use any symbols) Replace message with your message does not matter if spaces as it is replaced with %20 which whatsapp regards as a extension to the message so you can add messages with spaces no problem
pythonwhatsapp.webdmclose(number, message) Opens whatsapp using webbrowser to send a message using the public whatsapp web api (Which includes having the option of sending messages to specific numbers via changes in the url) then presses enter using pyautogui as the api only places the text but does not press send. Then it closes the tab with using the hotkey with pyautogui ctrl w.
pythonwhatsapp.webdmopen(number,message) Opens whatsapp using webbrowser to send a message using the public whatsapp web api (Which includes having the option of sending messages to specific numbers via changes in the url) then presses enter using pyautogui as the api only places the text but does not press send.
phonedm(number, message) Opens whatsapp using the api to send messages on phone. (Have not figured out how to auto send yet)
phonegroup() Not built yet as i am yet to figure out.
webgroupclose(invite, message) Opens whatsapp using webbrowser to send a message using the public whatsapp web api (It includes the option to open a group but not place any placeholder text). Due to the limiations of the api, I had to use pyautogui function of typing the message then pressing enter. Then it cloeses the group with pyautogui hotkey ctrl,w.
webgroupopen(invite, message) Opens whatsapp using webbrowser to send a message using the public whatsapp web api (It includes the option to open a group but not place any placeholder text). Due to the limiations of the api, I had to use pyautogui function of typing the message then pressing enter.
Will add more features if they are suggested.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file Whatpy-1.0.1.tar.gz.
File metadata
- Download URL: Whatpy-1.0.1.tar.gz
- Upload date:
- Size: 14.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7fadbb239c7de04bc96fdb428d5db706c496ce22db984253d5443e314328723
|
|
| MD5 |
87fd57d13d7a6a5eeb36e80d8123074e
|
|
| BLAKE2b-256 |
11c779b2cc9a027c58ad76d6430652a1df7ecdd4b83e73861411b8155f3f2d67
|
File details
Details for the file Whatpy-1.0.1-py3-none-any.whl.
File metadata
- Download URL: Whatpy-1.0.1-py3-none-any.whl
- Upload date:
- Size: 14.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
48ff32dedd03c7e3788aa3942f09892c6746cd3ed6dd9dfffdae8130acdde7c5
|
|
| MD5 |
959f69b8d9587362c85eacf6f19d3281
|
|
| BLAKE2b-256 |
15ea776c51a4479fa002e3f5559a4229aa826db5a630ed19712a972fb688a8af
|