Skip to content

Commit 0399eb6

Browse files
authored
Update whatsapp-schedule.py
changes to whatsapp scheduler
1 parent dca3c96 commit 0399eb6

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

whatsapp-schedule.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
"""
2-
Author - Richmond Nyamekye
2+
Author- Richmond Nyamekye
33
4-
install requirements: python -m pip install pywhatkit
4+
download https://github.com/mozilla/geckodriver/releases
55
6-
Schedule a whatsapp message to be sent at your convenience
6+
install requirements: python -m pip install selenium
77
88
"""
99
import pywhatkit
@@ -14,14 +14,13 @@ def send_msg(phone: str, msg: str, hour: int, minute: int) -> None:
1414

1515

1616
def send_whatmsg_to_group(group: str, msg: str, hour: int, minute: int) -> None:
17-
pywhatkit.sendwhatmsg_to_group(group, msg, hour, minute)
17+
pywhatkit.send_whatmsg_to_group(group, msg, hour, minute)
1818

1919

2020
def main():
2121
msg_type = int(input("Enter 1 to send a message to a uSER and 2 to a GROUP: "))
2222
if msg_type == 1:
2323
phone = input("Enter phone number: ")
24-
#make changes to suit your needs
2524
if phone[0] == "0":
2625
phone = phone[1::]
2726
while True:

0 commit comments

Comments
 (0)