Skip to content

Commit

Permalink
pyperclip mod
Browse files Browse the repository at this point in the history
  • Loading branch information
ymongo committed Feb 9, 2023
1 parent 5ab68e3 commit 7f80f6b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
4 changes: 1 addition & 3 deletions pywhatkit/core/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,7 @@ def send_message(message: str, receiver: str, wait_time: int) -> None:
"""Parses and Sends the Message"""

_web(receiver=receiver, message=message)
time.sleep(7)
click(WIDTH / 2, HEIGHT / 2 + 15)
time.sleep(wait_time - 7)
time.sleep(wait_time)
if not check_number(number=receiver):
pyperclip.copy(message)
if platform.system() == "Darwin":
Expand Down
12 changes: 6 additions & 6 deletions pywhatkit/whats.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
def sendwhatmsg_instantly(
phone_no: str,
message: str,
wait_time: int = 15,
wait_time: int = 30,
tab_close: bool = False,
close_time: int = 3,
) -> None:
Expand Down Expand Up @@ -46,7 +46,7 @@ def sendwhatmsg(
message: str,
time_hour: int,
time_min: int,
wait_time: int = 15,
wait_time: int = 30,
tab_close: bool = False,
close_time: int = 3,
) -> None:
Expand Down Expand Up @@ -90,7 +90,7 @@ def sendwhatmsg_to_group(
message: str,
time_hour: int,
time_min: int,
wait_time: int = 15,
wait_time: int = 30,
tab_close: bool = False,
close_time: int = 3,
) -> None:
Expand Down Expand Up @@ -126,7 +126,7 @@ def sendwhatmsg_to_group(
def sendwhatmsg_to_group_instantly(
group_id: str,
message: str,
wait_time: int = 15,
wait_time: int = 30,
tab_close: bool = False,
close_time: int = 3,
) -> None:
Expand All @@ -145,7 +145,7 @@ def sendwhatsmsg_to_all(
message: str,
time_hour: int,
time_min: int,
wait_time: int = 15,
wait_time: int = 30,
tab_close: bool = False,
close_time: int = 3,
):
Expand All @@ -161,7 +161,7 @@ def sendwhats_image(
time_hour: int,
time_min: int,
caption: str = "",
wait_time: int = 15,
wait_time: int = 30,
tab_close: bool = False,
close_time: int = 3,
) -> None:
Expand Down

0 comments on commit 7f80f6b

Please sign in to comment.