Skip to content

Commit

Permalink
Update whatsapp-schedule.py
Browse files Browse the repository at this point in the history
changes to whatsapp scheduler
  • Loading branch information
rein14 authored Sep 27, 2022
1 parent dca3c96 commit 0399eb6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions whatsapp-schedule.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
"""
Author - Richmond Nyamekye
Author- Richmond Nyamekye
install requirements: python -m pip install pywhatkit
download https://github.com/mozilla/geckodriver/releases
Schedule a whatsapp message to be sent at your convenience
install requirements: python -m pip install selenium
"""
import pywhatkit
Expand All @@ -14,14 +14,13 @@ def send_msg(phone: str, msg: str, hour: int, minute: int) -> None:


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


def main():
msg_type = int(input("Enter 1 to send a message to a uSER and 2 to a GROUP: "))
if msg_type == 1:
phone = input("Enter phone number: ")
#make changes to suit your needs
if phone[0] == "0":
phone = phone[1::]
while True:
Expand Down

0 comments on commit 0399eb6

Please sign in to comment.