diff --git a/pywhatkit/core/core.py b/pywhatkit/core/core.py index cbb2b1a..f0d9008 100644 --- a/pywhatkit/core/core.py +++ b/pywhatkit/core/core.py @@ -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": diff --git a/pywhatkit/whats.py b/pywhatkit/whats.py index f162c0a..f21da91 100755 --- a/pywhatkit/whats.py +++ b/pywhatkit/whats.py @@ -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: @@ -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: @@ -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: @@ -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: @@ -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, ): @@ -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: