mirror of
https://github.com/orangecoding/fredy.git
synced 2026-06-16 12:31:07 +00:00
IMPROVEMENT: improve readme, add telegram to config example
This commit is contained in:
@@ -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.
|
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.
|
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)
|
A more detailed list of instructions can be found here [https://core.telegram.org/bots#botfather](https://core.telegram.org/bots#botfather)
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,12 @@
|
|||||||
},
|
},
|
||||||
"console": {
|
"console": {
|
||||||
"enabled": true
|
"enabled": true
|
||||||
}
|
},
|
||||||
|
"telegram": {
|
||||||
|
"chatId": "",
|
||||||
|
"token": "",
|
||||||
|
"enabled": false
|
||||||
|
},
|
||||||
},
|
},
|
||||||
"sources": {
|
"sources": {
|
||||||
"immoscout": {
|
"immoscout": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "Fredy",
|
"name": "Fredy",
|
||||||
"version": "1.0.0",
|
"version": "1.1.0",
|
||||||
"description": "[F]ind [R]eal [E]states [d]amn eas[y].",
|
"description": "[F]ind [R]eal [E]states [d]amn eas[y].",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node index.js",
|
"start": "node index.js",
|
||||||
|
|||||||
Reference in New Issue
Block a user