-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
30 lines (25 loc) · 802 Bytes
/
main.py
File metadata and controls
30 lines (25 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import os
from autoWhatsApp import send_individual_contact, send_multiple_contacts
import warnings
warnings.filterwarnings("ignore") # Silence warnings
# Message configurations
PHONE_NUMBER = "+905xxxxxxxxx" # Edit phone numbers
PHONE_NUMBERS = ["+905xxxxxxxxx", "+905xxxxxxxxx"] # Edit phone numbers
MESSAGE = "Hello, this is an automated message sent via autoWhatsApp module."
HEADLESS_MODE = True
ATTACHMENTS = os.listdir("assets")
if __name__ == "__main__":
send_individual_contact(
phone_number=PHONE_NUMBER,
message=MESSAGE,
headless=HEADLESS_MODE,
attachments=ATTACHMENTS
)
'''
send_multiple_contacts(
phone_numbers=PHONE_NUMBERS,
message=MESSAGE,
headless=HEADLESS_MODE,
attachments=ATTACHMENTS
)
'''