mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
Telegram
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
"scen": "1",
|
||||
"telegramApi": "1416711569:AAEI0j83GmXqwzb_gnK1B0Am0gDwZoJt5xo",
|
||||
"telegonof": "0",
|
||||
"teleginput":"0",
|
||||
"weblogin": "admin",
|
||||
"webpass": "admin",
|
||||
"snaUdp": "0",
|
||||
|
||||
@@ -21,30 +21,49 @@
|
||||
},
|
||||
{
|
||||
"type": "checkbox",
|
||||
"name": "tel",
|
||||
"name": "telegonof",
|
||||
"title": "Включить телеграм",
|
||||
"action": "/set?telegonof=[[tel]]",
|
||||
"action": "/set?telegonof=[[telegonof]]",
|
||||
"state": "{{telegonof}}"
|
||||
},
|
||||
{
|
||||
"type": "hr"
|
||||
},
|
||||
{
|
||||
"type": "checkbox",
|
||||
"name": "teleginput",
|
||||
"title": "Включить прием входящих сообщений",
|
||||
"action": "/set?teleginput=[[teleginput]]",
|
||||
"state": "{{teleginput}}"
|
||||
},
|
||||
{
|
||||
"type": "hr"
|
||||
},
|
||||
{
|
||||
"type": "h4",
|
||||
"style": "width:40%;float:left;",
|
||||
"title": "Telegram API token:"
|
||||
"title": "Telegram chat ID"
|
||||
},
|
||||
{
|
||||
"type": "input",
|
||||
"title": "",
|
||||
"name": "chatId-arg",
|
||||
"state": "{{chatId}}"
|
||||
},
|
||||
|
||||
{
|
||||
"type": "h4",
|
||||
"title": "Telegram API token"
|
||||
},
|
||||
{
|
||||
"type": "input",
|
||||
"title": "",
|
||||
"name": "telegramApi-arg",
|
||||
"style": "width:60%;float:right",
|
||||
"state": "{{telegramApi}}"
|
||||
},
|
||||
{
|
||||
"type": "button",
|
||||
"title": "{{ButSave}}",
|
||||
"action": "set?telegramApi=[[telegramApi-arg]]",
|
||||
"action": "set?telegramApi=[[telegramApi-arg]]&chatId=[[chatId-arg]]",
|
||||
"class": "btn btn-block btn-default",
|
||||
"style": "width:100%;display:inline"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user