-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwhatsapp.html
More file actions
90 lines (85 loc) · 2.87 KB
/
whatsapp.html
File metadata and controls
90 lines (85 loc) · 2.87 KB
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
90
<html>
<head><title>Whatsapp</title></head>
<body>
<script type="text/javascript">
function Send()
{
var apikey = document.getElementById("apikey").value;
var phone_no = document.getElementById("phone_no").value;
var parse_mode = document.getElementById("parse_mode").value;
var text = document.getElementById("text").value;
var sendUrl_Whatsapp = "https://api.callmebot.com/whatsapp.php";
sendUrl_Whatsapp = sendUrl_Whatsapp + "?phone=" + phone_no;
sendUrl_Whatsapp = sendUrl_Whatsapp + "&text=" + text;
sendUrl_Whatsapp = sendUrl_Whatsapp + "&apikey=" + apikey;
document.getElementById("whatsapp").action = sendUrl_Whatsapp;
document.getElementById("whatsapp").submit();
}
</script>
<form method="POST" action="" id="whatsapp" name="whatsapp">
<table border="0" cellpadding="0" width="100%" height="1">
<tr>
<td>
<div align="right">
<table border="0" cellpadding="0" width="100%" height="21">
<tr>
<td align="left" class="style1">
<font color="#668E39">WHATSAPP via CallMeBot</font></td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td width="100%" height="1">
<hr color="#668E39" size="1">
</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
<tr>
<td width="25%"><font face="arial" size="1"><b> Welcome, Guest</b></font>
</td>
<td width="25%"> </td>
<td width="25%"> </td>
</tr>
</table>
<table>
<tr>
<td>Apikey : </td>
<td><input type="visible" id="apikey" name="apikey" value=""></td>
</tr>
<tr>
<td>Phone No : </td>
<td><input type="visible" id="phone_no" name="phone_no" value=""></td>
</tr>
<tr>
<td>Parse Mode : </td>
<td><input type="visible" id="parse_mode" name="parse_mode" value=""></td>
</tr>
<tr>
<td>Text : </td>
<td><textarea name="text" id="text"></textarea></td>
<tr>
<table>
<input type="button" value="Send" id="btnSend" name="btnSend" onclick='Send()'>
<table border="0" cellpadding="0" width="100%" height="1">
<tr>
<td width="100%" height="1">
<hr color="#668E39" size="1">
</td>
</tr>
<tr>
<td width="100%" height="1" align="center">
<font face="Microsoft Sans Serif" size="1" color="#999999">Developed by <a href="mailto:deadzone19842002@gmail.com?subject=GitHub:WhatsApp" style="color:#668E39;">Mohamad Aimaduddin</a> - Copyright 2021 MI Development</font></td>
</tr>
</table>
</form>
<script type="text/javascript">
const urlParams = new URLSearchParams(window.location.search);
document.getElementById("apikey").value = urlParams.get("apikey");
document.getElementById("phone_no").value = urlParams.get("phone_no");
document.getElementById("parse_mode").value = urlParams.get("parse_mode");
</script>
</body>
</html>