Merge pull request #1 from mtrp12/master

added additional info on how to get your chat id and added global quest alert
master
AardCrowley 3 years ago committed by GitHub
commit a5cdb1a85a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -20,7 +20,14 @@ To add your bot's channel to Telegram, you'll need to click the link from Botfat
# Getting your Chat ID
The next step will be to get your chat ID. The easiest way I've found to do this is using the test message in your new Bot channel. Go to the following page: `https://api.telegram.org/bot<token>/getUpdates` (where `<token>` is the token you got in the last step). Upon heading to the site, you'll see a JSON-formatted list of information. Look specifically for the table `chat`, which has an `id` field. Copy that ID (including any negative symbols).
The next step will be to get your chat ID. The easiest way I've found to do this is using the test message in your new Bot channel. Go to the following page: `https://api.telegram.org/bot<token>/getUpdates` (where `<token>` is the token you got in the last step). Upon heading to the site, you'll see a JSON-formatted list of information. Look specifically for the table `chat`, which has an `id` field. Copy that ID (including any negative symbols). If you only see mostly empty JSON without any chat id like this -
```json
{"ok":true,"result":[]}
```
Send a message to the bot using the following format, to get updated JSON.
```
/start your_msg_whatever
```
# Putting it all together
@ -77,4 +84,4 @@ end
```
Please be aware that if you utilize this feature so you can bot and pass bot checks, you are a bad person and you will be caught eventually. This feature is only to be used so you do not miss any tells for legitimate reasons. Besides, the Imms have other ways to botcheck you, too.
If you have any questions or difficulties, please feel free to drop me (Crowley) a tell or a note on personal board.
If you have any questions or difficulties, please feel free to drop me (Crowley) a tell or a note on personal board.

@ -24,7 +24,6 @@
<!-- Script -->
<script>
<![CDATA[
async_ok, async = pcall(require, "async")
@ -37,6 +36,7 @@ local triggerLines = {
{name = "donationDouble", match ="\\[ 10 minutes of double exp started courtesy of donations being open \\]", message = "Double for 10 minutes!"},
{name = "hourDouble", match = "^For the next 60 minutes all experience is doubled!!$", message = "Hour of double!"},
{name = "questAlert", match = "^QUEST: You may now quest again.", message = "Quest time!"},
{name = "gqAlert", match = "^Global Quest\: Global quest \# (.*?) has been declared(.*?)$", message = "GQ ALERT#"},
}
@ -78,8 +78,8 @@ function pageRequest(req, protocol)
end
function sendAlert(name, line, wildcards)
local wc = wildcards[1] or ""
if name ~= "TestAlert" then
local wc = wildcards[1] or ""
for _,v in ipairs(triggerLines) do
if name == v.name then
msg = string.format(alertFormat, url.escape(v.message .. wc))

Loading…
Cancel
Save