From 1c6d8744507c3cc452062c63098c92947ea4ef38 Mon Sep 17 00:00:00 2001 From: AardCrowley <12467582+AardCrowley@users.noreply.github.com> Date: Tue, 18 Aug 2020 12:05:22 -0400 Subject: [PATCH] Update README.md --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index f733fe8..19ef98d 100644 --- a/README.md +++ b/README.md @@ -14,13 +14,13 @@ First things first, you need to install Telegram. Though the most common use wou Your next order of business will be to get your own Bot API token. To do this, you'll need to talk to the Botfather, which you can add to your application here: https://telegram.me/botfather -Once he's been added, you'll simply type /newbot in order to create your first bot. You'll receive an API token for it, so you'll want to copy that token and save it somewhere as you'll be using it shortly. +Once he's been added, you'll simply type `/newbot` in order to create your first bot. You'll receive an API token for it, so you'll want to copy that token and save it somewhere as you'll be using it shortly. -To add your bot's channel to Telegram, you'll need to click the link from Botfather's message congratulating you on creating your bot. It'll be t.me/<yourbotname>. Then click 'Start' and send a message in preparation for the next step. +To add your bot's channel to Telegram, you'll need to click the link from Botfather's message congratulating you on creating your bot. It'll be `t.me/<yourbotname>`. Then click `Start` and send a message in preparation for the next step. # 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). # Putting it all together @@ -30,7 +30,7 @@ Now, open the plugin and make the following changes. Where it says: chatID = ``` -replace <your chat ID> with the ID you picked up from the previous step. Where it says: +replace `` with the ID you picked up from the previous step. Where it says: ```lua apiToken = "" @@ -42,11 +42,11 @@ change it to say: apiToken = "bot" ``` -where <token> again is what you received from creating your bot. It is imperative that "bot" precedes it. The plugin will not work without it. +where `` again is what you received from creating your bot. It is imperative that "bot" precedes it. The plugin will not work without it. From here on out, it should work out of the gate. -If you're wanting to add new triggers, locate the 'triggerLines' portion, and add your trigger as such: +If you're wanting to add new triggers, locate the `triggerLines` section, and add your trigger as such: ```lua