forked from rahimnathwani/pushover-for-chrome
-
Notifications
You must be signed in to change notification settings - Fork 24
/
options.html
63 lines (62 loc) · 2.22 KB
/
options.html
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
<!doctype html>
<html>
<head>
<title>Send to Telegram</title>
<style type="text/css">
body {
background-color: white;
padding: 8px;
font-family: Helvetica, Arial, Serif;
}
/* input, button, select, option {
border-radius: 5px;
background-color: rgb(235, 235, 235);
padding: 5px;
font-weight: bold;
border: 1px solid rgb(12, 40, 99);
} */
.input {
width: 400px;
}
select {
width: 310px;
}
td {
padding: 5px;
}
td:first-child {
text-align: right;
font-weight: bold;
}
#message {
font-size: 15px;
color: green;
/* font-weight: bold; */
}
</style>
</head>
<body>
<h1>Send to Telegram</h1>
<table border="0">
<tr>
<td>API Token:
<td><input id='token' class="input">
<tr>
<td>User ID:
<td><input id='userkey' class="input">
<tr>
<td><button id='save'>Save</button>
<td id='message'>
</table>
<h4>Setup Instruction:</h4>
<ol>
<li>Install "Send to Telegram" from <a href="https://chrome.google.com/webstore/detail/send-to-telegram-for-goog/dgblfklicldlbclahclbkeiacpiiancc">Chrome Web Store - Send to Telegram</a>.</li>
<li>Create a Telegram Bot following <a href="https://core.telegram.org/bots#6-botfather">Telegram official introduction</a> and get your bot <code><API token></code>.</li>
<li><strong>Send any message to the bot created, in the Telegram APP.</strong></li>
<li>Get your <code><User ID></code> (value of "<code>id</code>" in the response) by visiting <code>https://api.telegram.org/bot<API token>/getUpdates</code>.</li>
<li>Fill your <code><API token></code> and <code><User ID></code> in the extension setting page.</li>
<li>If everything is working correctly, this page and your bot will display '"Send to Telegram" configured successfully!'.</li>
</ol>
<script type="text/javascript" src="options.js"></script>
</body>
</html>