Skip to content

Commit 1e960f6

Browse files
authored
Merge pull request #170 from Sachit71/patch-1
Update whats.py
2 parents 7cc97b3 + 3d7755a commit 1e960f6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pywhatkit/whats.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ def sendwhatmsg(
4545
close_time: int = 3,
4646
) -> None:
4747
"""Send a WhatsApp Message at a Certain Time"""
48-
4948
if not core.check_number(number=phone_no):
5049
raise exceptions.CountryCodeException("Country Code Missing in Phone Number!")
5150

@@ -124,8 +123,7 @@ def sendwhatmsg_to_group_instantly(
124123
"""Send WhatsApp Message to a Group Instantly"""
125124

126125
current_time = time.localtime()
127-
128-
time.sleep(sleep_time)
126+
time.sleep(4)
129127
core.send_message(message=message, receiver=group_id, wait_time=wait_time)
130128
log.log_message(_time=current_time, receiver=group_id, message=message)
131129
if tab_close:

0 commit comments

Comments
 (0)