From 35bdc9e78c58cc108b04a4034ceda40b7286835c Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Wed, 7 Feb 2018 08:31:56 +0100 Subject: [PATCH] IMPROVEMENT: improve readme, add telegram to config example --- README.md | 5 ++++- conf/config.example | 7 ++++++- package.json | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 638b0f1..62118cf 100755 --- a/README.md +++ b/README.md @@ -52,7 +52,10 @@ Adding new notification adapter is easy however. See [Contribution](https://gith For Telegram, you need to create a Bot. This is pretty easy. Open [this](https://telegram.me/BotFather) url on your smartphone and follow the instructions. A telegram bot is not allowed to send messages directly to a user, you as a user need to first contact the bot to get a chatId. -After the user has send a message to your bot the first time, you can gather the chatId like this: `$ curl -X GET https://api.telegram.org/botYOUR_API_TOKEN/getUpdates` +After the user has send a message to your bot the first time, you can gather the chatId like this: +``` +curl -X GET https://api.telegram.org/bot{YOUR_TELEGRAM_TOKEN}/getUpdates +``` A more detailed list of instructions can be found here [https://core.telegram.org/bots#botfather](https://core.telegram.org/bots#botfather) diff --git a/conf/config.example b/conf/config.example index 0e86c9d..997ba64 100755 --- a/conf/config.example +++ b/conf/config.example @@ -10,7 +10,12 @@ }, "console": { "enabled": true - } + }, + "telegram": { + "chatId": "", + "token": "", + "enabled": false + }, }, "sources": { "immoscout": { diff --git a/package.json b/package.json index cf77765..80cf854 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "Fredy", - "version": "1.0.0", + "version": "1.1.0", "description": "[F]ind [R]eal [E]states [d]amn eas[y].", "scripts": { "start": "node index.js",