Изменил(а) на 'flows/CheWeather_bot.json'
This commit is contained in:
276
flows/CheWeather_bot.json
Normal file
276
flows/CheWeather_bot.json
Normal file
@@ -0,0 +1,276 @@
|
||||
{
|
||||
"createdAt": "2023-01-13T07:41:08.684Z",
|
||||
"updatedAt": "2023-01-13T08:48:07.327Z",
|
||||
"id": "71",
|
||||
"name": "CheWeather_bot",
|
||||
"active": false,
|
||||
"nodes": [
|
||||
{
|
||||
"parameters": {
|
||||
"updates": [
|
||||
"message"
|
||||
],
|
||||
"additionalFields": {}
|
||||
},
|
||||
"id": "6fafd7ed-79b2-4def-a235-0c657825faa1",
|
||||
"name": "Telegram Trigger",
|
||||
"type": "n8n-nodes-base.telegramTrigger",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
-220,
|
||||
260
|
||||
],
|
||||
"webhookId": "b2212171-35fe-4d91-b7aa-c8b8561b8eea",
|
||||
"credentials": {
|
||||
"telegramApi": {
|
||||
"id": "1",
|
||||
"name": "Che weather bot"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"dataType": "string",
|
||||
"value1": "={{ $json[\"message\"][\"text\"] }}",
|
||||
"rules": {
|
||||
"rules": [
|
||||
{
|
||||
"operation": "contains",
|
||||
"value2": "/start"
|
||||
},
|
||||
{
|
||||
"value2": "Текущая погода",
|
||||
"output": 1
|
||||
},
|
||||
{
|
||||
"value2": "Помощь",
|
||||
"output": 2
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"id": "df6f7e1f-c1a6-4587-93c4-9e978a3b1a13",
|
||||
"name": "Switch",
|
||||
"type": "n8n-nodes-base.switch",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
-20,
|
||||
260
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"operation": "sendChatAction",
|
||||
"chatId": "-1001465058848"
|
||||
},
|
||||
"id": "13a2e9a9-d246-48a6-8fcd-8c4403d84744",
|
||||
"name": "Telegram",
|
||||
"type": "n8n-nodes-base.telegram",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
720,
|
||||
340
|
||||
],
|
||||
"credentials": {
|
||||
"telegramApi": {
|
||||
"id": "1",
|
||||
"name": "Che weather bot"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"chatId": "-1001465058848",
|
||||
"text": "Меню",
|
||||
"replyMarkup": "replyKeyboard",
|
||||
"replyKeyboard": {
|
||||
"rows": [
|
||||
{
|
||||
"row": {
|
||||
"buttons": [
|
||||
{
|
||||
"text": "Текущая погода",
|
||||
"additionalFields": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"row": {
|
||||
"buttons": [
|
||||
{
|
||||
"text": "Прогноз погоды",
|
||||
"additionalFields": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"row": {
|
||||
"buttons": [
|
||||
{
|
||||
"text": "Помощь",
|
||||
"additionalFields": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"replyKeyboardOptions": {
|
||||
"resize_keyboard": true
|
||||
},
|
||||
"additionalFields": {}
|
||||
},
|
||||
"id": "1193a925-36c5-4d96-9b0b-f1a2c422544a",
|
||||
"name": "Telegram1",
|
||||
"type": "n8n-nodes-base.telegram",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
720,
|
||||
20
|
||||
],
|
||||
"credentials": {
|
||||
"telegramApi": {
|
||||
"id": "1",
|
||||
"name": "Che weather bot"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"chatId": "-1001465058848",
|
||||
"text": "Текущая погода",
|
||||
"additionalFields": {}
|
||||
},
|
||||
"id": "e01fbcc7-7fa9-4eea-85ad-8b691f689553",
|
||||
"name": "Telegram2",
|
||||
"type": "n8n-nodes-base.telegram",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
720,
|
||||
180
|
||||
],
|
||||
"credentials": {
|
||||
"telegramApi": {
|
||||
"id": "1",
|
||||
"name": "Che weather bot"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"chatId": "-1001465058848",
|
||||
"text": "Для отображения текущей погоды нажмите [Текущая погода]. Для просмотра графиков нажмите на соответствующие кнопки.",
|
||||
"additionalFields": {
|
||||
"parse_mode": "HTML"
|
||||
}
|
||||
},
|
||||
"id": "456d9aef-548f-4b91-b3db-8db8523ccf4b",
|
||||
"name": "Telegram3",
|
||||
"type": "n8n-nodes-base.telegram",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
500,
|
||||
480
|
||||
],
|
||||
"credentials": {
|
||||
"telegramApi": {
|
||||
"id": "1",
|
||||
"name": "Che weather bot"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"operation": "sendChatAction",
|
||||
"chatId": "-1001465058848"
|
||||
},
|
||||
"id": "9d27bb35-5728-4496-9507-64a173a9a46f",
|
||||
"name": "Telegram4",
|
||||
"type": "n8n-nodes-base.telegram",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
500,
|
||||
600
|
||||
],
|
||||
"credentials": {
|
||||
"telegramApi": {
|
||||
"id": "1",
|
||||
"name": "Che weather bot"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"connections": {
|
||||
"Telegram Trigger": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Switch",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Switch": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Telegram1",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"node": "Telegram",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "Telegram2",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"node": "Telegram4",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "Telegram3",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Telegram": {
|
||||
"main": [
|
||||
[]
|
||||
]
|
||||
},
|
||||
"Telegram4": {
|
||||
"main": [
|
||||
[]
|
||||
]
|
||||
}
|
||||
},
|
||||
"settings": {},
|
||||
"staticData": null,
|
||||
"pinData": {},
|
||||
"versionId": "c9915016-8e27-48ca-8a90-ac638f05e83e",
|
||||
"triggerCount": 1,
|
||||
"tags": [
|
||||
{
|
||||
"createdAt": "2022-05-19T09:37:15.931Z",
|
||||
"updatedAt": "2022-05-19T09:37:15.931Z",
|
||||
"id": "2",
|
||||
"name": "my"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user