-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwhatsapp kit.py
89 lines (76 loc) · 2.89 KB
/
whatsapp kit.py
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
print("HELLO EVERYONE\n"
"THIS IS A WHATSAPP KIT DEVELOPED BY VISHIST TULSYAN")
def kit():
import pywhatkit
print("1. SEND SOMEONE A MSG\n"
"2. SEND SOMEONE A MSG AT 12 A.M\n"
"3. SEND A MSG TO A GROUP\n"
"4. SEND A MSG TO GROUP AT 12 A.M\n"
"5. SEND SOMEONE A MSG AT A SPECIFIC TIME\n"
"6. SEND MSG TO A GROUP AT A SPECIFIC TIME\n")
work = input("NOW SELECT WHAT YOU WANT TO DO")
if work == "1":
try:
num = input("enter the number\n")
msg = input("enter the msg you want to send\n")
pywhatkit.sendwhatmsg_instantly(num, msg)
except:
print("an error occurred try again")
elif work == "2":
try:
num = input("enter the number\n")
msg = input("enter the msg you want to send\n")
pywhatkit.sendwhatmsg(num, msg, 00, 00)
except:
print("an error occurred try again")
elif work == "3":
try:
grp_name = input("enter the group name\n")
msg = input("enter the msg you want to send\n")
pywhatkit.sendwhatmsg_to_group_instantly(grp_name, msg)
except:
print("an error occurred try again")
elif work == "4":
try:
grp_name = input("enter the group name\n")
msg = input("enter the msg you want to send\n")
pywhatkit.sendwhatmsg_to_group(grp_name, msg, 00, 00)
except:
print("an error occurred try again")
elif work == "5":
try:
num = input("enter the number\n")
msg = input("enter the msg you want to send\n")
hr = int(input("enter the hour\n")) # write the hour in 24 hrs format for ex write 8 pm as 20
min = int(input("enter the min\n"))
pywhatkit.sendwhatmsg(num, msg, hr, min)
except:
print("an error occurred try again")
elif work == "6":
try:
grp_name = input("enter the group name\n")
msg = input("enter the msg you want to send\n")
hr = int(input("enter the hour\n")) # write the hour in 24 hrs format for ex write 8 pm as 20
min = int(input("enter the min\n"))
pywhatkit.sendwhatmsg_to_group(grp_name, msg, hr, min)
except:
print("an error occurred try again")
else:
print("please enter between 1-6")
kit()
# code developed by Vishist Tulsyan
def res_nd_exit():
print("do you want to restart again y/n")
action = input()
if action == "y":
kit()
else:
print("okay, thanks for using my programme")
res_nd_exit()
code = 1
while code < 2:
res_nd_exit()
# code developed by Vishist Tulsyan
# code developed by Vishist Tulsyan
# code developed by Vishist Tulsyan
# code developed by Vishist Tulsyan