Skip to content

Commit 577651c

Browse files
committed
commit message
1 parent 61e5131 commit 577651c

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Automate Whatsapp Messages
2+
This simple script will automate whatsapp
3+
4+
## Usage
5+
6+
- requires pywhatkit
7+
- Use `pip install pywhatkit`
8+
- Run `python Whatsapp.py`
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
2+
3+
import pywhatkit
4+
5+
# Send a WhatsApp Message to a Contact at 1:30 PM
6+
pywhatkit.sendwhatmsg("+910123456789", "Hi", 13, 30)
7+
8+
# Same as above but Closes the Tab in 2 Seconds after Sending the Message
9+
pywhatkit.sendwhatmsg("+910123456789", "Hi", 13, 30, 15, True, 2)
10+
11+
# Send an Image to a Group with the Caption as Hello
12+
pywhatkit.sendwhats_image("AB123CDEFGHijklmn", "Images/Hello.png", "Hello")
13+
14+
# Send an Image to a Contact with the no Caption
15+
pywhatkit.sendwhats_image("+910123456789", "Images/Hello.png")
16+
17+
# Send a WhatsApp Message to a Group at 12:00 AM
18+
pywhatkit.sendwhatmsg_to_group("AB123CDEFGHijklmn", "Hey All!", 0, 0)
19+
20+
# Send a WhatsApp Message to a Group instantly
21+
pywhatkit.sendwhatmsg_to_group_instantly("AB123CDEFGHijklmn", "Hey All!")
22+
23+
# Play a Video on YouTube
24+
pywhatkit.playonyt("PyWhatKit")

0 commit comments

Comments
 (0)