Skip to content

Commit

Permalink
document send instantly
Browse files Browse the repository at this point in the history
  • Loading branch information
SigireddyBalasai committed Dec 26, 2022
1 parent 3cb8c87 commit 1720030
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions pywhatkit/whats.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,7 @@ def sendimg_or_video_immediately(
raise exceptions.InvalidPhoneNumber("Invalid Phone Number.")

web.open(f"https://web.whatsapp.com/send?phone={phone_no}")
time.sleep(4)
time.sleep(wait_time - 4)
(ps_x, ps_y) = pg.size()
as_x = ps_x / 1920
as_y = ps_y / 1080
time.sleep(wait_time)
core.find_link()
time.sleep(1)
core.find_photo_or_video()
Expand Down Expand Up @@ -102,11 +98,7 @@ def sendwhatdoc_immediately(
raise exceptions.InvalidPhoneNumber("Invalid Phone Number.")

web.open(f"https://web.whatsapp.com/send?phone={phone_no}")
time.sleep(4)
time.sleep(wait_time - 4)
(ps_x, ps_y) = pg.size()
as_x = ps_x / 1920
as_y = ps_y / 1080
time.sleep(wait_time)
core.find_link()
time.sleep(1)
core.find_document()
Expand Down

0 comments on commit 1720030

Please sign in to comment.