Skip to content

Commit 7966d4d

Browse files
Merge pull request #238 from Siddhesh-Agarwal/master
Fix for issue 234
2 parents d6988d2 + 986a6ca commit 7966d4d

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

pywhatkit/core/core.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
import requests
99
from pyautogui import (
10-
ImageNotFoundException,
1110
click,
1211
hotkey,
1312
locateOnScreen,
@@ -109,7 +108,7 @@ def copy_image(path: str) -> None:
109108
elif system().lower() == "windows":
110109
from io import BytesIO
111110

112-
import win32clipboard
111+
import win32clipboard # pip install pywin32
113112
from PIL import Image
114113

115114
image = Image.open(path)

pywhatkit/misc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ def take_screenshot(
2323
screen.show(title=file_name)
2424
screen.save(f"{file_name}.png")
2525

26+
2627
def show_history() -> None:
2728
"""Prints the Log File Generated by the Library"""
2829

pywhatkit/whats.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import webbrowser as web
33
from datetime import datetime
44
from re import fullmatch
5+
from typing import List
56
from urllib.parse import quote
67

78
import pyautogui as pg
@@ -139,6 +140,21 @@ def sendwhatmsg_to_group_instantly(
139140
core.close_tab(wait_time=close_time)
140141

141142

143+
def sendwhatsmsg_to_all(
144+
phone_nos: List[str],
145+
message: str,
146+
time_hour: int,
147+
time_min: int,
148+
wait_time: int = 15,
149+
tab_close: bool = False,
150+
close_time: int = 3,
151+
):
152+
for phone_no in phone_nos:
153+
sendwhatmsg(
154+
phone_no, message, time_hour, time_min, wait_time, tab_close, close_time
155+
)
156+
157+
142158
def sendwhats_image(
143159
receiver: str,
144160
img_path: str,

0 commit comments

Comments
 (0)