Files
Whatsapp-Bulk-Sender/main.py
nanometer5088 063ba4a8d0 added all files
2023-03-17 06:20:59 -03:00

13 lines
396 B
Python

import pywhatkit
import time
from src.file import read_excel_file, saudacao
from src.contants import MESSAGE
file_path = "example.xlsx"
name, phone_no, sex, messages = read_excel_file(file_path)
for i in range(len(phone_no)):
message = f"{saudacao()}, {name[i]}.\n{MESSAGE[f'{int(messages[i])}']}"
pywhatkit.sendwhatmsg_instantly(phone_no[i], message, tab_close=True)
time.sleep(3)