iobroker.telegram 1.12.6 → 1.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +53 -305
- package/admin/custom/customComponents.js +5 -0
- package/admin/custom/customComponents.js.map +1 -0
- package/admin/custom/i18n/de.json +7 -0
- package/admin/custom/i18n/en.json +7 -0
- package/admin/custom/i18n/es.json +7 -0
- package/admin/custom/i18n/fr.json +7 -0
- package/admin/custom/i18n/it.json +7 -0
- package/admin/custom/i18n/nl.json +7 -0
- package/admin/custom/i18n/pl.json +7 -0
- package/admin/custom/i18n/pt.json +7 -0
- package/admin/custom/i18n/ru.json +7 -0
- package/admin/custom/i18n/zh-cn.json +7 -0
- package/admin/custom/static/js/main.f7ad378a.js +5 -0
- package/admin/custom/static/js/main.f7ad378a.js.map +1 -0
- package/admin/custom/static/js/node_modules_iobroker_adapter-react-v5_assets_devices_sync_recursive_-node_modules_iobroker_a-de23730.2d9e2cf3.chunk.js +3 -0
- package/admin/custom/static/js/node_modules_iobroker_adapter-react-v5_assets_devices_sync_recursive_-node_modules_iobroker_a-de23730.2d9e2cf3.chunk.js.map +1 -0
- package/admin/custom/static/js/node_modules_iobroker_adapter-react-v5_assets_devices_sync_recursive_-node_modules_iobroker_a-de23731.6f4a67a2.chunk.js +3 -0
- package/admin/custom/static/js/node_modules_iobroker_adapter-react-v5_assets_devices_sync_recursive_-node_modules_iobroker_a-de23731.6f4a67a2.chunk.js.map +1 -0
- package/admin/custom/static/js/node_modules_prop-types_index_js.bf62a0c5.chunk.js +3 -0
- package/admin/custom/static/js/node_modules_prop-types_index_js.bf62a0c5.chunk.js.map +1 -0
- package/admin/custom/static/js/node_modules_react_index_js.44097ea5.chunk.js +11 -0
- package/admin/custom/static/js/node_modules_react_index_js.44097ea5.chunk.js.map +1 -0
- package/admin/custom/static/js/src_Components_jsx.6d46a5a9.chunk.js +3 -0
- package/admin/custom/static/js/src_Components_jsx.6d46a5a9.chunk.js.map +1 -0
- package/admin/custom/static/js/src_bootstrap_jsx.08d58cd1.chunk.js +3 -0
- package/admin/custom/static/js/src_bootstrap_jsx.08d58cd1.chunk.js.map +1 -0
- package/admin/custom/static/js/vendors-node_modules_iobroker_adapter-react-v5_Components_Loader_js-node_modules_iobroker_ada-f984d5.2d483be3.chunk.js +237 -0
- package/admin/custom/static/js/vendors-node_modules_iobroker_adapter-react-v5_Components_Loader_js-node_modules_iobroker_ada-f984d5.2d483be3.chunk.js.map +1 -0
- package/admin/custom/static/js/vendors-node_modules_iobroker_adapter-react-v5_GenericApp_js-node_modules_react-dom_client_js.4962cabb.chunk.js +81 -0
- package/admin/custom/static/js/vendors-node_modules_iobroker_adapter-react-v5_GenericApp_js-node_modules_react-dom_client_js.4962cabb.chunk.js.map +1 -0
- package/admin/custom/static/js/vendors-node_modules_iobroker_adapter-react-v5_assets_devices_parseNames_js-node_modules_iobr-99c23e.7d6c2204.chunk.js +549 -0
- package/admin/custom/static/js/vendors-node_modules_iobroker_adapter-react-v5_assets_devices_parseNames_js-node_modules_iobr-99c23e.7d6c2204.chunk.js.map +1 -0
- package/admin/custom/static/js/vendors-node_modules_mui_icons-material_esm_index_js.1908e054.chunk.js +3 -0
- package/admin/custom/static/js/vendors-node_modules_mui_icons-material_esm_index_js.1908e054.chunk.js.map +1 -0
- package/admin/custom/static/js/vendors-node_modules_mui_material_AccordionDetails_index_js-node_modules_mui_material_Accordi-290e0d.34d0c251.chunk.js +142 -0
- package/admin/custom/static/js/vendors-node_modules_mui_material_AccordionDetails_index_js-node_modules_mui_material_Accordi-290e0d.34d0c251.chunk.js.map +1 -0
- package/admin/custom/static/js/vendors-node_modules_mui_material_Button_index_js-node_modules_mui_material_DialogActions_ind-4e43be.983b7c90.chunk.js +112 -0
- package/admin/custom/static/js/vendors-node_modules_mui_material_Button_index_js-node_modules_mui_material_DialogActions_ind-4e43be.983b7c90.chunk.js.map +1 -0
- package/admin/custom/static/js/vendors-node_modules_mui_material_index_js.a78a67bc.chunk.js +7 -0
- package/admin/custom/static/js/vendors-node_modules_mui_material_index_js.a78a67bc.chunk.js.map +1 -0
- package/admin/custom/static/js/vendors-node_modules_mui_material_utils_createSvgIcon_js.16e151f1.chunk.js +22 -0
- package/admin/custom/static/js/vendors-node_modules_mui_material_utils_createSvgIcon_js.16e151f1.chunk.js.map +1 -0
- package/admin/custom/static/js/vendors-node_modules_mui_styles_index_js-node_modules_mui_utils_esm_capitalize_js-node_module-19fe07.7ee8cc9f.chunk.js +22 -0
- package/admin/custom/static/js/vendors-node_modules_mui_styles_index_js-node_modules_mui_utils_esm_capitalize_js-node_module-19fe07.7ee8cc9f.chunk.js.map +1 -0
- package/admin/custom/static/js/vendors-node_modules_mui_styles_withStyles_withStyles_js.8d322beb.chunk.js +16 -0
- package/admin/custom/static/js/vendors-node_modules_mui_styles_withStyles_withStyles_js.8d322beb.chunk.js.map +1 -0
- package/admin/custom/static/js/vendors-node_modules_react-dom_index_js.97b12c54.chunk.js +26 -0
- package/admin/custom/static/js/vendors-node_modules_react-dom_index_js.97b12c54.chunk.js.map +1 -0
- package/admin/jsonConfig.json +314 -0
- package/admin/jsonCustom.json +12 -12
- package/admin/words.js +82 -98
- package/io-package.json +78 -56
- package/lib/adapter-config.d.ts +17 -0
- package/main.js +6 -49
- package/package.json +32 -9
- package/admin/custom_m.html +0 -335
- package/admin/i18n/de/translations.json +0 -79
- package/admin/i18n/en/translations.json +0 -79
- package/admin/i18n/es/translations.json +0 -79
- package/admin/i18n/fr/translations.json +0 -79
- package/admin/i18n/it/translations.json +0 -79
- package/admin/i18n/nl/translations.json +0 -79
- package/admin/i18n/pl/translations.json +0 -79
- package/admin/i18n/pt/translations.json +0 -79
- package/admin/i18n/ru/translations.json +0 -79
- package/admin/i18n/zh-cn/translations.json +0 -79
- package/admin/index_m.html +0 -462
- package/lib/tools.js +0 -99
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
**This adapter uses Sentry libraries to automatically report exceptions and code errors to the developers.** For more details and for information how to disable the error reporting see [Sentry-Plugin Documentation](https://github.com/ioBroker/plugin-sentry#plugin-sentry)! Sentry reporting is used starting with js-controller 3.0.
|
|
13
13
|
|
|
14
14
|
## Configuration
|
|
15
|
-
Ask [@BotFather](https://telegram.me/botfather) to create new bot
|
|
15
|
+
Ask [@BotFather](https://telegram.me/botfather) to create new bot `/newbot`.
|
|
16
16
|
|
|
17
17
|
You will be asked to enter name of the bot and then the username.
|
|
18
18
|
After that, you will get the Token.
|
|
@@ -33,7 +33,7 @@ User must be authenticated before.
|
|
|
33
33
|
|
|
34
34
|
You can specify user in that way too:
|
|
35
35
|
|
|
36
|
-
```
|
|
36
|
+
```javascript
|
|
37
37
|
sendTo('telegram', {user: 'UserName', text: 'Test message'}, function (res) {
|
|
38
38
|
console.log('Sent to ' + res + ' users');
|
|
39
39
|
});
|
|
@@ -47,20 +47,20 @@ For example: Recipient: "User1,User4,User5"
|
|
|
47
47
|
|
|
48
48
|
You can send message over state too, just set state *"telegram.INSTANCE.communicate.response"* with value *"@userName Test message"* or with a JSON object:
|
|
49
49
|
|
|
50
|
-
```
|
|
50
|
+
```json
|
|
51
51
|
{
|
|
52
|
-
text: "Test message"
|
|
52
|
+
"text": "Test message"
|
|
53
53
|
}
|
|
54
54
|
```
|
|
55
55
|
|
|
56
56
|
The JSON syntax also allows the adding options from the [telegram bots API](https://core.telegram.org/bots/api), as well as setting the user or chatId:
|
|
57
57
|
|
|
58
|
-
```
|
|
58
|
+
```json
|
|
59
59
|
{
|
|
60
|
-
text: "Test message, but with *bold*",
|
|
61
|
-
parse_mode: "Markdown",
|
|
62
|
-
chatId: "1234567890",
|
|
63
|
-
user: "UserName"
|
|
60
|
+
"text": "Test message, but with *bold*",
|
|
61
|
+
"parse_mode": "Markdown",
|
|
62
|
+
"chatId": "1234567890",
|
|
63
|
+
"user": "UserName"
|
|
64
64
|
}
|
|
65
65
|
```
|
|
66
66
|
|
|
@@ -79,7 +79,7 @@ To send a photo, just send a path to file instead of text or URL: `sendTo('teleg
|
|
|
79
79
|
|
|
80
80
|
Example how to send a screenshot from web-cam to telegram:
|
|
81
81
|
|
|
82
|
-
```
|
|
82
|
+
```javascript
|
|
83
83
|
var request = require('request');
|
|
84
84
|
var fs = require('fs');
|
|
85
85
|
|
|
@@ -123,7 +123,7 @@ In this case the action command will be sent.
|
|
|
123
123
|
|
|
124
124
|
The description for telegram API can be found [here](https://core.telegram.org/bots/api) and you can use all options defined in this api, just by including that into send object. E.g.:
|
|
125
125
|
|
|
126
|
-
```
|
|
126
|
+
```javascript
|
|
127
127
|
sendTo('telegram.0', {
|
|
128
128
|
text: '/tmp/snap.jpg',
|
|
129
129
|
caption: 'Snapshot',
|
|
@@ -146,7 +146,7 @@ Adapter tries to detect the type of message (photo, video, audio, document, stic
|
|
|
146
146
|
|
|
147
147
|
Location will be detected on attribute latitude:
|
|
148
148
|
|
|
149
|
-
```
|
|
149
|
+
```javascript
|
|
150
150
|
sendTo('telegram.0', {
|
|
151
151
|
latitude: 52.522430,
|
|
152
152
|
longitude: 13.372234,
|
|
@@ -159,7 +159,7 @@ You have the possibility to define extra the type of the message in case you wan
|
|
|
159
159
|
|
|
160
160
|
Following types are possible: *sticker*, *video*, *document*, *audio*, *photo*.
|
|
161
161
|
|
|
162
|
-
```
|
|
162
|
+
```javascript
|
|
163
163
|
sendTo('telegram.0', {
|
|
164
164
|
text: fs.readFileSync('/opt/path/picture.png'),
|
|
165
165
|
type: 'photo'
|
|
@@ -169,7 +169,7 @@ sendTo('telegram.0', {
|
|
|
169
169
|
### Keyboard
|
|
170
170
|
You can show keyboard **ReplyKeyboardMarkup** in the client:
|
|
171
171
|
|
|
172
|
-
```
|
|
172
|
+
```javascript
|
|
173
173
|
sendTo('telegram.0', {
|
|
174
174
|
text: 'Press button',
|
|
175
175
|
reply_markup: {
|
|
@@ -187,7 +187,7 @@ You can read more [here](https://core.telegram.org/bots/api#replykeyboardmarkup)
|
|
|
187
187
|
|
|
188
188
|
You can show keyboard **InlineKeyboardMarkup** in the client:
|
|
189
189
|
|
|
190
|
-
```
|
|
190
|
+
```javascript
|
|
191
191
|
sendTo('telegram', {
|
|
192
192
|
user: user,
|
|
193
193
|
text: 'Click the button',
|
|
@@ -207,8 +207,8 @@ You can read more [here](https://core.telegram.org/bots/api#inlinekeyboardmarkup
|
|
|
207
207
|
### answerCallbackQuery
|
|
208
208
|
Use this method to send answers to callback queries sent from inline keyboards. The answer will be displayed to the user as a notification at the top of the chat screen or as an alert. On success, *True* is returned.
|
|
209
209
|
|
|
210
|
-
```
|
|
211
|
-
if (command ===
|
|
210
|
+
```javascript
|
|
211
|
+
if (command === '1_2') {
|
|
212
212
|
sendTo('telegram', {
|
|
213
213
|
user: user,
|
|
214
214
|
answerCallbackQuery: {
|
|
@@ -225,7 +225,7 @@ You can read more [here](https://github.com/yagop/node-telegram-bot-api/blob/rel
|
|
|
225
225
|
You can send to telegram the message and the next answer will be returned in callback.
|
|
226
226
|
Timeout can be set in configuration and by default is 60 seconds.
|
|
227
227
|
|
|
228
|
-
```
|
|
228
|
+
```javascript
|
|
229
229
|
sendTo('telegram.0', 'ask', {
|
|
230
230
|
user: user, // optional
|
|
231
231
|
text: 'Are you sure?',
|
|
@@ -244,7 +244,9 @@ sendTo('telegram.0', 'ask', {
|
|
|
244
244
|
## Chat ID
|
|
245
245
|
From version 0.4.0 you can use chat ID to send messages to chat.
|
|
246
246
|
|
|
247
|
-
|
|
247
|
+
```javascript
|
|
248
|
+
sendTo('telegram.0', {text: 'Message to chat', chatId: 'SOME-CHAT-ID-123');
|
|
249
|
+
```
|
|
248
250
|
|
|
249
251
|
## Updating messages
|
|
250
252
|
The following methods allow you to change an existing message in the message history instead of sending a new one with a result of an action. This is most useful for messages with *inline keyboards* using callback queries, but can also help reduce clutter in conversations with regular chat bots.
|
|
@@ -252,8 +254,8 @@ The following methods allow you to change an existing message in the message his
|
|
|
252
254
|
### editMessageText
|
|
253
255
|
Use this method to edit text sent by the bot or via the bot (for inline bots). On success, if edited message is sent by the bot, the edited Message is returned, otherwise *True* is returned.
|
|
254
256
|
|
|
255
|
-
```
|
|
256
|
-
if (command ===
|
|
257
|
+
```javascript
|
|
258
|
+
if (command === '1_2') {
|
|
257
259
|
sendTo('telegram', {
|
|
258
260
|
user: user,
|
|
259
261
|
text: 'New text before buttons',
|
|
@@ -275,8 +277,8 @@ if (command === "1_2") {
|
|
|
275
277
|
|
|
276
278
|
*or new text for last message:*
|
|
277
279
|
|
|
278
|
-
```
|
|
279
|
-
if (command ===
|
|
280
|
+
```javascript
|
|
281
|
+
if (command === '1_2') {
|
|
280
282
|
sendTo('telegram', {
|
|
281
283
|
user: user,
|
|
282
284
|
text: 'New text message',
|
|
@@ -296,8 +298,8 @@ You can read more [here](https://github.com/yagop/node-telegram-bot-api/blob/rel
|
|
|
296
298
|
Use this method to edit caption of the message sent by the bot or via the bot (for inline bots).
|
|
297
299
|
On success, if edited message is sent by the bot, the edited Message is returned, otherwise *True* is returned.
|
|
298
300
|
|
|
299
|
-
```
|
|
300
|
-
if (command ===
|
|
301
|
+
```javascript
|
|
302
|
+
if (command === '1_2') {
|
|
301
303
|
sendTo('telegram', {
|
|
302
304
|
user, // optional
|
|
303
305
|
text: 'New caption',
|
|
@@ -317,8 +319,8 @@ You can read more [here](https://github.com/yagop/node-telegram-bot-api/blob/rel
|
|
|
317
319
|
Use this method to edit picture of the message sent by the bot or via the bot (for inline bots).
|
|
318
320
|
On success, if edited message is sent by the bot, the edited Message is returned, otherwise *True* is returned.
|
|
319
321
|
|
|
320
|
-
```
|
|
321
|
-
if (command ===
|
|
322
|
+
```javascript
|
|
323
|
+
if (command === '1_2') {
|
|
322
324
|
sendTo('telegram', {
|
|
323
325
|
user, // optional
|
|
324
326
|
text: 'picture.jpg',
|
|
@@ -339,8 +341,8 @@ You can read more [here](https://core.telegram.org/bots/api#editmessagemedia).
|
|
|
339
341
|
### editMessageReplyMarkup
|
|
340
342
|
Use this method to edit only the reply markup of messages sent by the bot or via the bot (for inline bots). On success, if edited message is sent by the bot, the edited Message is returned, otherwise *True* is returned.
|
|
341
343
|
|
|
342
|
-
```
|
|
343
|
-
if (command ===
|
|
344
|
+
```javascript
|
|
345
|
+
if (command === '1_2') {
|
|
344
346
|
sendTo('telegram', {
|
|
345
347
|
user: user,
|
|
346
348
|
text: 'New text before buttons',
|
|
@@ -367,8 +369,8 @@ Use this method to delete a message, including service messages, with the follow
|
|
|
367
369
|
- A message can only be deleted if it was sent less than 48 hours ago.
|
|
368
370
|
Returns *True* on success.
|
|
369
371
|
|
|
370
|
-
```
|
|
371
|
-
if (command ===
|
|
372
|
+
```javascript
|
|
373
|
+
if (command === 'delete') {
|
|
372
374
|
sendTo('telegram', {
|
|
373
375
|
user: user,
|
|
374
376
|
deleteMessage: {
|
|
@@ -391,7 +393,7 @@ Suppose you are using only JavaScript without *text2command*. You already sent a
|
|
|
391
393
|
- user is the user registered with you TelegramBot which sent the message
|
|
392
394
|
- command is the command your TelegramBot received
|
|
393
395
|
|
|
394
|
-
```
|
|
396
|
+
```javascript
|
|
395
397
|
on({id: 'telegram.0.communicate.request', change: 'any'}, function (obj) {
|
|
396
398
|
var stateval = getState('telegram.0.communicate.request').val; // save Statevalue received from your Bot
|
|
397
399
|
var user = stateval.substring(1,stateval.indexOf("]")); // extract user from the message
|
|
@@ -462,13 +464,13 @@ Thanks to [callmebot](https://www.callmebot.com/) api, you can make a call to yo
|
|
|
462
464
|
|
|
463
465
|
To do that from javascript adapter just call:
|
|
464
466
|
|
|
465
|
-
```
|
|
467
|
+
```javascript
|
|
466
468
|
sendTo('telegram.0', 'call', 'Some text');
|
|
467
469
|
```
|
|
468
470
|
|
|
469
471
|
or
|
|
470
472
|
|
|
471
|
-
```
|
|
473
|
+
```javascript
|
|
472
474
|
sendTo('telegram.0', 'call', {
|
|
473
475
|
text: 'Some text',
|
|
474
476
|
user: '@Username', // optional and the call will be done to the first user in telegram.0.communicate.users.
|
|
@@ -479,7 +481,7 @@ sendTo('telegram.0', 'call', {
|
|
|
479
481
|
|
|
480
482
|
or
|
|
481
483
|
|
|
482
|
-
```
|
|
484
|
+
```javascript
|
|
483
485
|
sendTo('telegram.0', 'call', {
|
|
484
486
|
text: 'Some text',
|
|
485
487
|
users: ['@Username1', '+49xxxx'] // Array of `users' or telephone numbers.
|
|
@@ -488,7 +490,7 @@ sendTo('telegram.0', 'call', {
|
|
|
488
490
|
|
|
489
491
|
or
|
|
490
492
|
|
|
491
|
-
```
|
|
493
|
+
```javascript
|
|
492
494
|
sendTo('telegram.0', 'call', {
|
|
493
495
|
file: 'url of mp3 file that is accessible from internet',
|
|
494
496
|
users: ['@Username1', '@Username2'] // Array of `users' or telephone numbers.
|
|
@@ -688,7 +690,8 @@ For simple text messages to all users, just put the text within the payload of t
|
|
|
688
690
|
send it to the ioBroker state `telegram.INSTANCE.communicate.response`.
|
|
689
691
|
|
|
690
692
|
If you want to set additional options, fill the payload with a JSON object, such as:
|
|
691
|
-
|
|
693
|
+
|
|
694
|
+
```javascript
|
|
692
695
|
msg.payload = {
|
|
693
696
|
// text is the only mandatory field here
|
|
694
697
|
"text": "*bold _italic bold ~italic bold strikethrough~ __underline italic bold___ bold*",
|
|
@@ -698,285 +701,30 @@ msg.payload = {
|
|
|
698
701
|
"parse_mode": "MarkdownV2"
|
|
699
702
|
}
|
|
700
703
|
```
|
|
704
|
+
|
|
701
705
|
Before sending it to `telegram.INSTANCE.communicate.responseJson you need to stringify the object!`
|
|
702
706
|
|
|
707
|
+
## Changelog
|
|
703
708
|
<!--
|
|
704
709
|
Placeholder for the next version (at the beginning of the line):
|
|
705
|
-
###
|
|
710
|
+
### **WORK IN PROGRESS**
|
|
706
711
|
-->
|
|
712
|
+
### 1.14.1 (2022-07-04)
|
|
713
|
+
* (bluefox) Fixed warnings for `botSendChatId`
|
|
707
714
|
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
* (Apollon77) Fix crash cases reported by Sentry
|
|
715
|
+
### 1.14.0 (2022-07-02)
|
|
716
|
+
* (bluefox) Ported config Gui to Admin 6
|
|
711
717
|
|
|
712
|
-
### 1.
|
|
713
|
-
* (
|
|
714
|
-
|
|
715
|
-
### 1.12.4 (2022-04-19)
|
|
716
|
-
* (Apollon77) Fix crash cases reported by Sentry
|
|
718
|
+
### 1.13.0 (2022-06-01)
|
|
719
|
+
* (klein0r) Added Admin 5 UI config
|
|
720
|
+
* (bluefox) Added rule block for javascript as plugin
|
|
717
721
|
|
|
718
|
-
### 1.12.
|
|
719
|
-
* (Apollon77)
|
|
722
|
+
### 1.12.6 (2022-04-23)
|
|
723
|
+
* (Apollon77) Fixed crash cases reported by Sentry
|
|
720
724
|
|
|
721
|
-
### 1.12.
|
|
725
|
+
### 1.12.5 (2022-04-19)
|
|
722
726
|
* (Apollon77) Fix crash cases reported by Sentry
|
|
723
727
|
|
|
724
|
-
### 1.12.0 (2022-03-21)
|
|
725
|
-
* (Apollon77) Add new JSON states communication.responseJson and communication.responseSilentJson to also accept json structures (stringified!) to send messages
|
|
726
|
-
* (Apollon77) Try to prevent adapter crashes when internet is not available
|
|
727
|
-
* (Apollon77) Add Sentry for crash reporting
|
|
728
|
-
|
|
729
|
-
### 1.11.1 (2022-01-27)
|
|
730
|
-
* (bluefox) fixed the receiving files
|
|
731
|
-
|
|
732
|
-
### 1.11.0 (2022-01-26)
|
|
733
|
-
* (bluefox) Added bruteforce protection
|
|
734
|
-
* (bluefox) Extended blockly with `disable_web_preview` option
|
|
735
|
-
* (bluefox) added `communicate.responseSilent` state to answer silently
|
|
736
|
-
|
|
737
|
-
### 1.10.1 (2022-01-26)
|
|
738
|
-
* (bluefox) Updated telegram library
|
|
739
|
-
|
|
740
|
-
### 1.10.0 (2021-07-30)
|
|
741
|
-
* (PeterVoronov) Add botSendRaw state to allow processing of the RAW data send by bot
|
|
742
|
-
* (Apollon77) Add tier for js-controller 3.3
|
|
743
|
-
* (bluefox) Fixed the control of the states
|
|
744
|
-
|
|
745
|
-
### 1.9.0 (2021-06-26)
|
|
746
|
-
* (bluefox) Added the option to not authenticate the new users
|
|
747
|
-
* (bluefox) Added the option to disable system messages for specific users
|
|
748
|
-
|
|
749
|
-
### 1.8.3 (2021-06-26)
|
|
750
|
-
* (Nahasapeemapetilon) corrected bug with many simultaneous requests
|
|
751
|
-
* (bluefox) formatting
|
|
752
|
-
* (bluefox) implemented editMessageMedia and editMessageCaption
|
|
753
|
-
* (bluefox) Encrypt token
|
|
754
|
-
* (bluefox) Corrected error with password
|
|
755
|
-
* (bluefox) Corrected error with boolean easy controls
|
|
756
|
-
|
|
757
|
-
### 1.8.2 (2021-05-28)
|
|
758
|
-
* (Diginix) fixed data types
|
|
759
|
-
|
|
760
|
-
### 1.8.1 (2021-04-20)
|
|
761
|
-
* (bluefox) added the admin5 support
|
|
762
|
-
|
|
763
|
-
### 1.8.0 (2021-02-22)
|
|
764
|
-
* (Apollon77/Nahasapeemapetilon) catch several API error cases to hopefully get around adapter crashes on network errors
|
|
765
|
-
* (Nahasapeemapetilon) add support for media groups and multiple image qualities
|
|
766
|
-
|
|
767
|
-
### 1.7.0 (2021-01-08)
|
|
768
|
-
* (bluefox) Support of new Let's Encrypt (only with js-controller 3.2.x)
|
|
769
|
-
|
|
770
|
-
### 1.6.2 (2020-12-27)
|
|
771
|
-
* (fincha) Fixing error with keyboard
|
|
772
|
-
|
|
773
|
-
### 1.6.1 (2020-12-01)
|
|
774
|
-
* (ChristianB86) Added option to set the amount of repeats for telegram call.
|
|
775
|
-
|
|
776
|
-
### 1.6.0 (2020-11-09)
|
|
777
|
-
* (MarkRohrbacher) Allow overriding chatId / user when writing JSON objects to telegram.INSTANCE.communicate.response
|
|
778
|
-
* (blazeis) Fix Send message via Response field with Username
|
|
779
|
-
* (Garfonso) fill requestRaw also for callbackQuery
|
|
780
|
-
|
|
781
|
-
### 1.5.9 (2020-05-04)
|
|
782
|
-
* (Apollon77) potential error fixed when sending messages
|
|
783
|
-
* (Apollon77) webserver initialization optimized again to prevent errors with invalid certificates
|
|
784
|
-
|
|
785
|
-
### 1.5.8 (2020-04-30)
|
|
786
|
-
* (Apollon77) errors on webserver initialization are handled properly
|
|
787
|
-
|
|
788
|
-
### 1.5.6 (2020-04-04)
|
|
789
|
-
* (bluefox) Fixed missing languages for blockly
|
|
790
|
-
* (bluefox) Added description of easy-keyboard
|
|
791
|
-
|
|
792
|
-
### 1.5.5 (2020-04-04)
|
|
793
|
-
* (alutov) Fixed bug for telegram users with an empty username
|
|
794
|
-
* (Mark Rohrbacher) Allowed JSON objects in telegram.*.communicate.response
|
|
795
|
-
|
|
796
|
-
### 1.5.4 (2020-03-11)
|
|
797
|
-
* (bluefox) Improvement of `callmebot`
|
|
798
|
-
|
|
799
|
-
### 1.5.3 (2020-02-23)
|
|
800
|
-
* (foxriver76) removed usage of adapter.objects
|
|
801
|
-
* (Haba) Fix of the response for the "callback_query" event
|
|
802
|
-
|
|
803
|
-
### 1.5.1 (2020-02-09)
|
|
804
|
-
* (bluefox) Invalid parameters were checked
|
|
805
|
-
|
|
806
|
-
### 1.5.0 (2020-02-03)
|
|
807
|
-
* (bluefox) Added voice calls
|
|
808
|
-
|
|
809
|
-
### 1.4.7 (2019-12-27)
|
|
810
|
-
* (Apollon77) Make compatible with js-controller 2.3
|
|
811
|
-
|
|
812
|
-
### 1.4.6 (2019-12-09)
|
|
813
|
-
* (bluefox) Allowed writeOnly states in telegram
|
|
814
|
-
|
|
815
|
-
### 1.4.4 (2019-11-27)
|
|
816
|
-
* (bluefox) New sendTo message "ask" was added (see [Question](#question) )
|
|
817
|
-
|
|
818
|
-
### 1.4.3 (2019-02-21)
|
|
819
|
-
* (BuZZy1337) Bugfix for not yet completely implemented feature
|
|
820
|
-
|
|
821
|
-
### 1.4.2 (2019-02-18)
|
|
822
|
-
* (BuZZy1337) fix for recipients containing spaces
|
|
823
|
-
* (BuZZy1337) change loglevel of "getMe" info-messages to debug
|
|
824
|
-
* (bluefox) fix scroll in firefox
|
|
825
|
-
|
|
826
|
-
### 1.4.1 (2019-01-12)
|
|
827
|
-
* (simatec) Support for Compact mode
|
|
828
|
-
|
|
829
|
-
### 1.4.0 (2019-01-06)
|
|
830
|
-
* (bluefox) Custom settings for states were added
|
|
831
|
-
|
|
832
|
-
### 1.3.6 (2018-12-01)
|
|
833
|
-
* (Apollon77) fix #78
|
|
834
|
-
|
|
835
|
-
### 1.3.5 (2018-11-04)
|
|
836
|
-
* (BuZZy1337) Fix a small error caused by previous commit
|
|
837
|
-
|
|
838
|
-
### 1.3.4 (2018-11-04)
|
|
839
|
-
* (BuZZy1337) Ask if saved users should be wiped when password is changed.
|
|
840
|
-
|
|
841
|
-
### 1.3.3 (2018-11-03)
|
|
842
|
-
* (BuZZy1337) Show warning if no password is set.
|
|
843
|
-
|
|
844
|
-
### 1.3.2 (2018-10-28)
|
|
845
|
-
* (BuZZy1337) Just minor cosmetic fixes/changes
|
|
846
|
-
|
|
847
|
-
### 1.3.1 (2018-10-08)
|
|
848
|
-
* (bluefox) The ability of enable/disable of states controlling was added
|
|
849
|
-
|
|
850
|
-
### 1.3.0 (2018-09-19)
|
|
851
|
-
* (BuZZy1337) Added possibility to delete authenticated users in the Adapter-Config screen (via Messages tab)
|
|
852
|
-
* (BuZZy1337) fixed a problem "building" the Blockly `sendto` block when no adapter instance exists.
|
|
853
|
-
|
|
854
|
-
### 1.2.7 (2018-08-29)
|
|
855
|
-
* (BuZZy1337) Added "disable notification" checkbox to blockly block.
|
|
856
|
-
* (BuZZy1337) Added "parse_mode" selector to blockly block.
|
|
857
|
-
|
|
858
|
-
### 1.2.6 (2018-07-30)
|
|
859
|
-
* (BuZZy1337) Added support for sending Messages to Group-Chats via Blockly.
|
|
860
|
-
|
|
861
|
-
### 1.2.5 (2018-07-11)
|
|
862
|
-
* (BuZZy1337) Added possibility to specify more than one recipient. (separated by comma)
|
|
863
|
-
|
|
864
|
-
### 1.2.4 (2018-06-02)
|
|
865
|
-
* (BuZZy1337) remove HTML Tags from Logerror-Messages
|
|
866
|
-
* (Apollon77) fix misleading error when setting a value for a state
|
|
867
|
-
|
|
868
|
-
### 1.2.3 (2018-04-26)
|
|
869
|
-
* (Osrx) Added Socks5 settings to config dialog on machines running admin 2.
|
|
870
|
-
|
|
871
|
-
### 1.2.2 (2018-04-25)
|
|
872
|
-
* (kirovilya) Changed library for Proxy Socks5
|
|
873
|
-
|
|
874
|
-
### 1.2.1 (2018-04-17)
|
|
875
|
-
* (Haba) Added support for Proxy Socks5.
|
|
876
|
-
|
|
877
|
-
### 1.2.0 (2018-03-21)
|
|
878
|
-
* (AlGu) Possibility to define polling interval in configuration wizard. Default is 300ms.
|
|
879
|
-
|
|
880
|
-
### 1.1.4 (2018-03-20)
|
|
881
|
-
* (BasGo) Added checks before accessing non-existing options
|
|
882
|
-
|
|
883
|
-
### 1.1.3 (2018-03-19)
|
|
884
|
-
* (BasGo) Fixed issue preventing adapter to terminate correctly
|
|
885
|
-
* (BasGo) Fixed issue with wrong callback query id
|
|
886
|
-
|
|
887
|
-
### 1.1.2 (2018-03-16)
|
|
888
|
-
* (BasGo) Reworked configuration and translation
|
|
889
|
-
|
|
890
|
-
### 1.1.1 (2018-01-26)
|
|
891
|
-
* (Haba) New objects: botSendChatId, botSendMessageId
|
|
892
|
-
|
|
893
|
-
### 1.1.0 (2018-01-24)
|
|
894
|
-
* (bluefox) Possibility to send photo, video, document, audio as buffer.
|
|
895
|
-
|
|
896
|
-
### 1.0.11 (2018-01-23)
|
|
897
|
-
* (Haba) Sending an image without intermediate caching
|
|
898
|
-
|
|
899
|
-
### 1.0.10 (2018-01-18)
|
|
900
|
-
* (Haba) Updating for Admin3
|
|
901
|
-
|
|
902
|
-
### 1.0.9 (2017-11-27)
|
|
903
|
-
* (kirovilya) Allow the sending of GIF via sendDocument
|
|
904
|
-
|
|
905
|
-
### 1.0.8 (2017-10-03)
|
|
906
|
-
* (Haba1234) initPolling() this is deprecated. -> startPolling()
|
|
907
|
-
* (Haba1234) Add log polling_error and webhook_error.
|
|
908
|
-
|
|
909
|
-
### 1.0.7 (2017-09-27)
|
|
910
|
-
* (Haba) New function: deleteMessage. Update version lib node-telegram-bot-api
|
|
911
|
-
|
|
912
|
-
### 1.0.6 (2017-07-19)
|
|
913
|
-
* (Haba) Fix an incorrect order of writing variables
|
|
914
|
-
|
|
915
|
-
### 1.0.5 (2017-07-18)
|
|
916
|
-
* (Haba) inline keyboard and new functions: answerCallbackQuery, editMessageText, editMessageReplyMarkup
|
|
917
|
-
|
|
918
|
-
### 1.0.4 (2017-06-22)
|
|
919
|
-
* (dwm) Fix longitude and latitude
|
|
920
|
-
|
|
921
|
-
### 1.0.3 (2017-05-24)
|
|
922
|
-
* (bluefox) Fix position message
|
|
923
|
-
|
|
924
|
-
### 1.0.2 (2017-01-13)
|
|
925
|
-
* (bluefox) show only installed instances in blockly
|
|
926
|
-
|
|
927
|
-
### 1.0.1 (2016-11-04)
|
|
928
|
-
* (bluefox) Show user name in error message
|
|
929
|
-
|
|
930
|
-
### 1.0.0 (2016-10-31)
|
|
931
|
-
* (bluefox) server mode with web hooks
|
|
932
|
-
|
|
933
|
-
### 0.4.4 (2016-10-12)
|
|
934
|
-
* (bluefox) support of blockly
|
|
935
|
-
|
|
936
|
-
### 0.4.3 (2016-08-28)
|
|
937
|
-
* (bluefox) filter out double messages
|
|
938
|
-
|
|
939
|
-
### 0.4.2 (2016-08-22)
|
|
940
|
-
* (bluefox) translations
|
|
941
|
-
* (bluefox) configurable restarting/started texts
|
|
942
|
-
|
|
943
|
-
### 0.4.1 (2016-07-29)
|
|
944
|
-
* (bluefox) response to chatId and not to userId
|
|
945
|
-
* (bluefox) cut messages with @
|
|
946
|
-
* (bluefox) add new states: requestChatId and requestUserId
|
|
947
|
-
|
|
948
|
-
### 0.4.0 (2016-07-21)
|
|
949
|
-
* (bluefox) allow sending of messages to chats via chat-ID
|
|
950
|
-
* (bluefox) support of video(mp4), audio, document, location, sticker, action
|
|
951
|
-
|
|
952
|
-
### 0.3.0 (2016-05-31)
|
|
953
|
-
* (bluefox) restart connection every hour
|
|
954
|
-
|
|
955
|
-
### 0.2.4 (2016-05-08)
|
|
956
|
-
* (bluefox) replace "_" with " " when sending to text2command
|
|
957
|
-
|
|
958
|
-
### 0.2.3 (2016-05-04)
|
|
959
|
-
* (bluefox) replace "/" with "#" when sending to text2command
|
|
960
|
-
|
|
961
|
-
### 0.2.2 (2016-04-14)
|
|
962
|
-
* (Jonas) fix unload
|
|
963
|
-
|
|
964
|
-
### 0.2.1 (2016-04-13)
|
|
965
|
-
* (Jonas) fix configuration and send to more than one user
|
|
966
|
-
|
|
967
|
-
### 0.2.0 (2016-04-12)
|
|
968
|
-
* (bluefox) add send photo possibility
|
|
969
|
-
|
|
970
|
-
### 0.1.0 (2016-02-20)
|
|
971
|
-
* (bluefox) fix double responses.
|
|
972
|
-
* (bluefox) inform about new start
|
|
973
|
-
|
|
974
|
-
### 0.0.2 (2016-02-15)
|
|
975
|
-
* (bluefox) fix error with sendTo
|
|
976
|
-
|
|
977
|
-
### 0.0.1 (2016-02-13)
|
|
978
|
-
* (bluefox) initial commit
|
|
979
|
-
|
|
980
728
|
## License
|
|
981
729
|
|
|
982
730
|
The MIT License (MIT)
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
var ConfigCustomTelegramSet;(function(){"use strict";var O={79620:function(i,d,u){var c={"./Components":function(){return Promise.all([u.e("webpack_sharing_consume_default_react_react"),u.e("webpack_sharing_consume_default_prop-types_prop-types"),u.e("webpack_sharing_consume_default_mui_material_mui_material-webpack_sharing_consume_default_mui-cb8763"),u.e("webpack_sharing_consume_default_iobroker_adapter-react-v5_iobroker_adapter-react-v5-webpack_s-b50fb2"),u.e("src_Components_jsx")]).then(function(){return function(){return u(51544)}})}},v=function(s,g){return u.R=g,g=u.o(c,s)?c[s]():Promise.resolve().then(function(){throw new Error('Module "'+s+'" does not exist in container.')}),u.R=void 0,g},p=function(s,g){if(!!u.S){var l="default",j=u.S[l];if(j&&j!==s)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return u.S[l]=s,u.I(l,g)}};u.d(d,{get:function(){return v},init:function(){return p}})}},D={};function e(i){var d=D[i];if(d!==void 0)return d.exports;var u=D[i]={id:i,loaded:!1,exports:{}};return O[i].call(u.exports,u,u.exports,e),u.loaded=!0,u.exports}e.m=O,e.c=D,function(){e.amdD=function(){throw new Error("define cannot be used indirect")}}(),function(){e.n=function(i){var d=i&&i.__esModule?function(){return i.default}:function(){return i};return e.d(d,{a:d}),d}}(),function(){e.d=function(i,d){for(var u in d)e.o(d,u)&&!e.o(i,u)&&Object.defineProperty(i,u,{enumerable:!0,get:d[u]})}}(),function(){e.f={},e.e=function(i){return Promise.all(Object.keys(e.f).reduce(function(d,u){return e.f[u](i,d),d},[]))}}(),function(){e.u=function(i){return"static/js/"+i+"."+{"vendors-node_modules_mui_material_utils_createSvgIcon_js":"16e151f1","vendors-node_modules_mui_material_Button_index_js-node_modules_mui_material_DialogActions_ind-4e43be":"983b7c90","vendors-node_modules_mui_styles_withStyles_withStyles_js":"8d322beb","vendors-node_modules_mui_material_AccordionDetails_index_js-node_modules_mui_material_Accordi-290e0d":"34d0c251","vendors-node_modules_iobroker_adapter-react-v5_Components_Loader_js-node_modules_iobroker_ada-f984d5":"2d483be3","vendors-node_modules_iobroker_adapter-react-v5_assets_devices_parseNames_js-node_modules_iobr-99c23e":"7d6c2204",webpack_sharing_consume_default_react_react:"dbf809cc","webpack_sharing_consume_default_prop-types_prop-types":"a742cf33","webpack_sharing_consume_default_react-dom_react-dom":"5f4509c2","webpack_sharing_consume_default_mui_material_mui_material-webpack_sharing_consume_default_mui-cb8763":"1157b925","node_modules_iobroker_adapter-react-v5_assets_devices_sync_recursive_-node_modules_iobroker_a-de23730":"2d9e2cf3","vendors-node_modules_mui_icons-material_esm_index_js":"1908e054","vendors-node_modules_mui_material_index_js":"a78a67bc","vendors-node_modules_mui_styles_index_js-node_modules_mui_utils_esm_capitalize_js-node_module-19fe07":"7ee8cc9f","node_modules_prop-types_index_js":"bf62a0c5","vendors-node_modules_react-dom_index_js":"97b12c54",node_modules_react_index_js:"44097ea5","webpack_sharing_consume_default_iobroker_adapter-react-v5_iobroker_adapter-react-v5-webpack_s-b50fb2":"4016679d",src_Components_jsx:"6d46a5a9","node_modules_iobroker_adapter-react-v5_assets_devices_sync_recursive_-node_modules_iobroker_a-de23731":"6f4a67a2"}[i]+".chunk.js"}}(),function(){e.miniCssF=function(i){}}(),function(){e.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(i){if(typeof window=="object")return window}}()}(),function(){e.o=function(i,d){return Object.prototype.hasOwnProperty.call(i,d)}}(),function(){var i={},d="iobroker-admin-component-telegram:";e.l=function(u,c,v,p){if(i[u]){i[u].push(c);return}var s,g;if(v!==void 0)for(var l=document.getElementsByTagName("script"),j=0;j<l.length;j++){var h=l[j];if(h.getAttribute("src")==u||h.getAttribute("data-webpack")==d+v){s=h;break}}s||(g=!0,s=document.createElement("script"),s.charset="utf-8",s.timeout=120,e.nc&&s.setAttribute("nonce",e.nc),s.setAttribute("data-webpack",d+v),s.src=u),i[u]=[c];var b=function(x,S){s.onerror=s.onload=null,clearTimeout(k);var w=i[u];if(delete i[u],s.parentNode&&s.parentNode.removeChild(s),w&&w.forEach(function(m){return m(S)}),x)return x(S)},k=setTimeout(b.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=b.bind(null,s.onerror),s.onload=b.bind(null,s.onload),g&&document.head.appendChild(s)}}(),function(){e.r=function(i){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})}}(),function(){e.nmd=function(i){return i.paths=[],i.children||(i.children=[]),i}}(),function(){e.S={};var i={},d={};e.I=function(u,c){c||(c=[]);var v=d[u];if(v||(v=d[u]={}),!(c.indexOf(v)>=0)){if(c.push(v),i[u])return i[u];e.o(e.S,u)||(e.S[u]={});var p=e.S[u],s=function(b){return typeof console!="undefined"&&console.warn&&console.warn(b)},g="iobroker-admin-component-telegram",l=function(b,k,x,S){var w=p[b]=p[b]||{},m=w[k];(!m||!m.loaded&&(!S!=!m.eager?S:g>m.from))&&(w[k]={get:x,from:g,eager:!!S})},j=function(b){var k=function(m){s("Initialization of sharing external failed: "+m)};try{var x=e(b);if(!x)return;var S=function(m){return m&&m.init&&m.init(e.S[u],c)};if(x.then)return h.push(x.then(S,k));var w=S(x);if(w&&w.then)return h.push(w.catch(k))}catch(m){k(m)}},h=[];switch(u){case"default":l("@iobroker/adapter-react-v5","3.1.16",function(){return Promise.all([e.e("vendors-node_modules_mui_material_utils_createSvgIcon_js"),e.e("vendors-node_modules_mui_material_Button_index_js-node_modules_mui_material_DialogActions_ind-4e43be"),e.e("vendors-node_modules_mui_styles_withStyles_withStyles_js"),e.e("vendors-node_modules_mui_material_AccordionDetails_index_js-node_modules_mui_material_Accordi-290e0d"),e.e("vendors-node_modules_iobroker_adapter-react-v5_Components_Loader_js-node_modules_iobroker_ada-f984d5"),e.e("vendors-node_modules_iobroker_adapter-react-v5_assets_devices_parseNames_js-node_modules_iobr-99c23e"),e.e("webpack_sharing_consume_default_react_react"),e.e("webpack_sharing_consume_default_prop-types_prop-types"),e.e("webpack_sharing_consume_default_react-dom_react-dom"),e.e("webpack_sharing_consume_default_mui_material_mui_material-webpack_sharing_consume_default_mui-cb8763"),e.e("node_modules_iobroker_adapter-react-v5_assets_devices_sync_recursive_-node_modules_iobroker_a-de23730")]).then(function(){return function(){return e(37228)}})}),l("@mui/icons-material","5.8.4",function(){return Promise.all([e.e("vendors-node_modules_mui_material_utils_createSvgIcon_js"),e.e("vendors-node_modules_mui_icons-material_esm_index_js"),e.e("webpack_sharing_consume_default_react_react"),e.e("webpack_sharing_consume_default_prop-types_prop-types")]).then(function(){return function(){return e(29048)}})}),l("@mui/material","5.8.6",function(){return Promise.all([e.e("vendors-node_modules_mui_material_utils_createSvgIcon_js"),e.e("vendors-node_modules_mui_material_Button_index_js-node_modules_mui_material_DialogActions_ind-4e43be"),e.e("vendors-node_modules_mui_material_AccordionDetails_index_js-node_modules_mui_material_Accordi-290e0d"),e.e("vendors-node_modules_mui_material_index_js"),e.e("webpack_sharing_consume_default_react_react"),e.e("webpack_sharing_consume_default_prop-types_prop-types"),e.e("webpack_sharing_consume_default_react-dom_react-dom")]).then(function(){return function(){return e(99774)}})}),l("@mui/styles","5.8.6",function(){return Promise.all([e.e("vendors-node_modules_mui_styles_withStyles_withStyles_js"),e.e("vendors-node_modules_mui_styles_index_js-node_modules_mui_utils_esm_capitalize_js-node_module-19fe07"),e.e("webpack_sharing_consume_default_react_react"),e.e("webpack_sharing_consume_default_prop-types_prop-types")]).then(function(){return function(){return e(78449)}})}),l("prop-types","15.8.1",function(){return e.e("node_modules_prop-types_index_js").then(function(){return function(){return e(2652)}})}),l("react-dom","18.2.0",function(){return Promise.all([e.e("vendors-node_modules_react-dom_index_js"),e.e("webpack_sharing_consume_default_react_react")]).then(function(){return function(){return e(73961)}})}),l("react","18.2.0",function(){return e.e("node_modules_react_index_js").then(function(){return function(){return e(89526)}})});break}return h.length?i[u]=Promise.all(h).then(function(){return i[u]=1}):i[u]=1}}}(),function(){var i;e.g.importScripts&&(i=e.g.location+"");var d=e.g.document;if(!i&&d&&(d.currentScript&&(i=d.currentScript.src),!i)){var u=d.getElementsByTagName("script");u.length&&(i=u[u.length-1].src)}if(!i)throw new Error("Automatic publicPath is not supported in this browser");i=i.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),e.p=i}(),function(){var i=function(r){var t=function(a){return a.split(".").map(function(_){return+_==_?+_:_})},n=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(r),o=n[1]?t(n[1]):[];return n[2]&&(o.length++,o.push.apply(o,t(n[2]))),n[3]&&(o.push([]),o.push.apply(o,t(n[3]))),o},d=function(r,t){r=i(r),t=i(t);for(var n=0;;){if(n>=r.length)return n<t.length&&(typeof t[n])[0]!="u";var o=r[n],a=(typeof o)[0];if(n>=t.length)return a=="u";var _=t[n],f=(typeof _)[0];if(a!=f)return a=="o"&&f=="n"||f=="s"||a=="u";if(a!="o"&&a!="u"&&o!=_)return o<_;n++}},u=function(r){var t=r[0],n="";if(r.length===1)return"*";if(t+.5){n+=t==0?">=":t==-1?"<":t==1?"^":t==2?"~":t>0?"=":"!=";for(var o=1,a=1;a<r.length;a++)o--,n+=(typeof(f=r[a]))[0]=="u"?"-":(o>0?".":"")+(o=2,f);return n}var _=[];for(a=1;a<r.length;a++){var f=r[a];_.push(f===0?"not("+y()+")":f===1?"("+y()+" || "+y()+")":f===2?_.pop()+" "+_.pop():u(f))}return y();function y(){return _.pop().replace(/^\((.+)\)$/,"$1")}},c=function(r,t){if(0 in r){t=i(t);var n=r[0],o=n<0;o&&(n=-n-1);for(var a=0,_=1,f=!0;;_++,a++){var y,V,C=_<r.length?(typeof r[_])[0]:"";if(a>=t.length||(V=(typeof(y=t[a]))[0])=="o")return!f||(C=="u"?_>n&&!o:C==""!=o);if(V=="u"){if(!f||C!="u")return!1}else if(f)if(C==V)if(_<=n){if(y!=r[_])return!1}else{if(o?y>r[_]:y<r[_])return!1;y!=r[_]&&(f=!1)}else if(C!="s"&&C!="n"){if(o||_<=n)return!1;f=!1,_--}else{if(_<=n||V<C!=o)return!1;f=!1}else C!="s"&&C!="n"&&(f=!1,_--)}}var M=[],P=M.pop.bind(M);for(a=1;a<r.length;a++){var T=r[a];M.push(T==1?P()|P():T==2?P()&P():T?c(T,t):!P())}return!!P()},v=function(r,t){var n=e.S[r];if(!n||!e.o(n,t))throw new Error("Shared module "+t+" doesn't exist in shared scope "+r);return n},p=function(r,o){var n=r[o],o=Object.keys(n).reduce(function(a,_){return!a||d(a,_)?_:a},0);return o&&n[o]},s=function(r,t){var n=r[t];return Object.keys(n).reduce(function(o,a){return!o||!n[o].loaded&&d(o,a)?a:o},0)},g=function(r,t,n,o){return"Unsatisfied version "+n+" from "+(n&&r[t][n].from)+" of shared singleton module "+t+" (required "+u(o)+")"},l=function(r,t,n,o){var a=s(r,n);return w(r[n][a])},j=function(r,t,n,o){var a=s(r,n);return c(o,a)||typeof console!="undefined"&&console.warn&&console.warn(g(r,n,a,o)),w(r[n][a])},h=function(r,t,n,o){var a=s(r,n);if(!c(o,a))throw new Error(g(r,n,a,o));return w(r[n][a])},b=function(r,a,n){var o=r[a],a=Object.keys(o).reduce(function(_,f){return c(n,f)&&(!_||d(_,f))?f:_},0);return a&&o[a]},k=function(r,t,n,o){var a=r[n];return"No satisfying version ("+u(o)+") of shared module "+n+" found in shared scope "+t+`.
|
|
2
|
+
Available versions: `+Object.keys(a).map(function(_){return _+" from "+a[_].from}).join(", ")},x=function(r,t,n,o){var a=b(r,n,o);if(a)return w(a);throw new Error(k(r,t,n,o))},S=function(r,t,n,o){typeof console!="undefined"&&console.warn&&console.warn(k(r,t,n,o))},w=function(r){return r.loaded=1,r.get()},m=function(r){return function(t,n,o,a){var _=e.I(t);return _&&_.then?_.then(r.bind(r,t,e.S[t],n,o,a)):r(t,e.S[t],n,o,a)}},z=m(function(r,t,n){return v(r,n),w(p(t,n))}),L=m(function(r,t,n,o){return t&&e.o(t,n)?w(p(t,n)):o()}),N=m(function(r,t,n,o){return v(r,n),w(b(t,n,o)||S(t,r,n,o)||p(t,n))}),I=m(function(r,t,n){return v(r,n),l(t,r,n)}),U=m(function(r,t,n,o){return v(r,n),j(t,r,n,o)}),G=m(function(r,t,n,o){return v(r,n),x(t,r,n,o)}),H=m(function(r,t,n,o){return v(r,n),h(t,r,n,o)}),J=m(function(r,t,n,o,a){return!t||!e.o(t,n)?a():w(b(t,n,o)||S(t,r,n,o)||p(t,n))}),K=m(function(r,t,n,o){return!t||!e.o(t,n)?o():l(t,r,n)}),A=m(function(r,t,n,o,a){return!t||!e.o(t,n)?a():j(t,r,n,o)}),W=m(function(r,t,n,o,a){var _=t&&e.o(t,n)&&b(t,n,o);return _?w(_):a()}),Q=m(function(r,t,n,o,a){return!t||!e.o(t,n)?a():h(t,r,n,o)}),E={},$={4819:function(){return A("default","react",[0],function(){return e.e("node_modules_react_index_js").then(function(){return function(){return e(89526)}})})},15854:function(){return A("default","prop-types",[0],function(){return e.e("node_modules_prop-types_index_js").then(function(){return function(){return e(2652)}})})},77440:function(){return A("default","react-dom",[0],function(){return e.e("vendors-node_modules_react-dom_index_js").then(function(){return function(){return e(73961)}})})},94427:function(){return A("default","@mui/material",[0],function(){return Promise.all([e.e("vendors-node_modules_mui_material_utils_createSvgIcon_js"),e.e("vendors-node_modules_mui_material_Button_index_js-node_modules_mui_material_DialogActions_ind-4e43be"),e.e("vendors-node_modules_mui_material_AccordionDetails_index_js-node_modules_mui_material_Accordi-290e0d"),e.e("vendors-node_modules_mui_material_index_js"),e.e("webpack_sharing_consume_default_react-dom_react-dom")]).then(function(){return function(){return e(99774)}})})},58503:function(){return A("default","@mui/styles",[0],function(){return Promise.all([e.e("vendors-node_modules_mui_styles_withStyles_withStyles_js"),e.e("vendors-node_modules_mui_styles_index_js-node_modules_mui_utils_esm_capitalize_js-node_module-19fe07")]).then(function(){return function(){return e(78449)}})})},75606:function(){return A("default","@iobroker/adapter-react-v5",[0],function(){return Promise.all([e.e("vendors-node_modules_mui_material_utils_createSvgIcon_js"),e.e("vendors-node_modules_mui_material_Button_index_js-node_modules_mui_material_DialogActions_ind-4e43be"),e.e("vendors-node_modules_mui_styles_withStyles_withStyles_js"),e.e("vendors-node_modules_mui_material_AccordionDetails_index_js-node_modules_mui_material_Accordi-290e0d"),e.e("vendors-node_modules_iobroker_adapter-react-v5_Components_Loader_js-node_modules_iobroker_ada-f984d5"),e.e("vendors-node_modules_iobroker_adapter-react-v5_assets_devices_parseNames_js-node_modules_iobr-99c23e"),e.e("webpack_sharing_consume_default_react-dom_react-dom"),e.e("node_modules_iobroker_adapter-react-v5_assets_devices_sync_recursive_-node_modules_iobroker_a-de23731")]).then(function(){return function(){return e(37228)}})})},59665:function(){return A("default","@mui/icons-material",[0],function(){return Promise.all([e.e("vendors-node_modules_mui_material_utils_createSvgIcon_js"),e.e("vendors-node_modules_mui_icons-material_esm_index_js")]).then(function(){return function(){return e(29048)}})})}},F={webpack_sharing_consume_default_react_react:[4819],"webpack_sharing_consume_default_prop-types_prop-types":[15854],"webpack_sharing_consume_default_react-dom_react-dom":[77440],"webpack_sharing_consume_default_mui_material_mui_material-webpack_sharing_consume_default_mui-cb8763":[94427,58503],"webpack_sharing_consume_default_iobroker_adapter-react-v5_iobroker_adapter-react-v5-webpack_s-b50fb2":[75606,59665]};e.f.consumes=function(r,t){e.o(F,r)&&F[r].forEach(function(n){if(e.o(E,n))return t.push(E[n]);var o=function(f){E[n]=0,e.m[n]=function(y){delete e.c[n],y.exports=f()}},a=function(f){delete E[n],e.m[n]=function(y){throw delete e.c[n],f}};try{var _=$[n]();_.then?t.push(E[n]=_.then(o).catch(a)):o(_)}catch(f){a(f)}})}}(),function(){var i={ConfigCustomTelegramSet:0};e.f.j=function(c,v){var p=e.o(i,c)?i[c]:void 0;if(p!==0)if(p)v.push(p[2]);else if(/^webpack_sharing_consume_default_(react(\-dom_react\-dom|_react)|iobroker_adapter\-react\-v5_iobroker_adapter\-react\-v5\-webpack_s\-b50fb2|mui_material_mui_material\-webpack_sharing_consume_default_mui\-cb8763|prop\-types_prop\-types)$/.test(c))i[c]=0;else{var s=new Promise(function(h,b){p=i[c]=[h,b]});v.push(p[2]=s);var g=e.p+e.u(c),l=new Error,j=function(h){if(e.o(i,c)&&(p=i[c],p!==0&&(i[c]=void 0),p)){var b=h&&(h.type==="load"?"missing":h.type),k=h&&h.target&&h.target.src;l.message="Loading chunk "+c+` failed.
|
|
3
|
+
(`+b+": "+k+")",l.name="ChunkLoadError",l.type=b,l.request=k,p[1](l)}};e.l(g,j,"chunk-"+c,c)}};var d=function(c,v){var p=v[0],s=v[1],g=v[2],l,j,h=0;if(p.some(function(k){return i[k]!==0})){for(l in s)e.o(s,l)&&(e.m[l]=s[l]);if(g)var b=g(e)}for(c&&c(v);h<p.length;h++)j=p[h],e.o(i,j)&&i[j]&&i[j][0](),i[j]=0},u=self.webpackChunkiobroker_admin_component_telegram=self.webpackChunkiobroker_admin_component_telegram||[];u.forEach(d.bind(null,0)),u.push=d.bind(null,u.push.bind(u))}(),function(){e.nc=void 0}();var B=e(79620);ConfigCustomTelegramSet=B})();
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=customComponents.js.map
|