iobroker.telegram 1.12.2 → 1.12.3

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 CHANGED
@@ -706,6 +706,9 @@ Before sending it to `telegram.INSTANCE.communicate.responseJson you need to str
706
706
  -->
707
707
 
708
708
  ## Changelog
709
+ ### 1.12.3 (2022-04-19)
710
+ * (Apollon77) Make sure also not set states can be queried - will return "State not set" in this case!
711
+
709
712
  ### 1.12.2 (2022-04-01)
710
713
  * (Apollon77) Fix crash cases reported by Sentry
711
714
 
package/io-package.json CHANGED
@@ -1,8 +1,20 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "telegram",
4
- "version": "1.12.2",
4
+ "version": "1.12.3",
5
5
  "news": {
6
+ "1.12.3": {
7
+ "en": "Make sure also not set states can be queried - will return \"State not set\" in this case!",
8
+ "de": "Stellen Sie sicher, dass auch nicht gesetzte Zustände abgefragt werden können - in diesem Fall wird \"Zustand nicht gesetzt\" zurückgegeben!",
9
+ "ru": "Убедитесь, что также можно запросить неустановленные состояния - в этом случае будет возвращено «Состояние не установлено»!",
10
+ "pt": "Certifique-se também de que os estados não definidos podem ser consultados - retornará \"Estado não definido\" neste caso!",
11
+ "nl": "Zorg ervoor dat ook niet-ingestelde staten kunnen worden opgevraagd - in dit geval wordt \"Status niet ingesteld\" geretourneerd!",
12
+ "fr": "Assurez-vous également que les états non définis peuvent être interrogés - renverra \"State not set\" dans ce cas !",
13
+ "it": "Assicurati che anche gli stati non impostati possano essere interrogati - in questo caso restituirà \"Stato non impostato\"!",
14
+ "es": "Asegúrese de que también se puedan consultar los estados no establecidos; ¡devolverá \"Estado no establecido\" en este caso!",
15
+ "pl": "Upewnij się, że również nieustawione stany mogą być odpytywane - w tym przypadku zwróci \"State not set\"!",
16
+ "zh-cn": "确保也可以查询未设置的状态 - 在这种情况下将返回“未设置状态”!"
17
+ },
6
18
  "1.12.2": {
7
19
  "en": "Fix crash cases reported by Sentry",
8
20
  "de": "Von Sentry gemeldete Absturzfälle beheben",
@@ -74,18 +86,6 @@
74
86
  "es": "Agregue el estado botSendRaw para permitir el procesamiento de los datos RAW enviados por bot\nAgregar nivel para js-controller 3.3\nArreglado el control de los estados.",
75
87
  "pl": "Dodaj stan botSendRaw, aby umożliwić przetwarzanie danych RAW wysyłanych przez bota\nDodaj warstwę dla kontrolera js 3.3\nPoprawiono kontrolę stanów",
76
88
  "zh-cn": "添加 botSendRaw 状态以允许处理 bot 发送的 RAW 数据\n为 js-controller 3.3 添加层\n修复了对状态的控制"
77
- },
78
- "1.9.0": {
79
- "en": "Added the option to not authenticate the new users\nAdded the option to disable system messages for specific users",
80
- "de": "Option hinzugefügt, die neuen Benutzer nicht zu authentifizieren\nOption zum Deaktivieren von Systemnachrichten für bestimmte Benutzer hinzugefügt",
81
- "ru": "Добавлена возможность не аутентифицировать новых пользователей\nДобавлена возможность отключить системные сообщения для определенных пользователей",
82
- "pt": "Adicionada a opção de não autenticar os novos usuários\nAdicionada a opção de desativar mensagens do sistema para usuários específicos",
83
- "nl": "De optie toegevoegd om de nieuwe gebruikers niet te authenticeren\nDe optie toegevoegd om systeemberichten voor specifieke gebruikers uit te schakelen",
84
- "fr": "Ajout de l'option pour ne pas authentifier les nouveaux utilisateurs\nAjout de l'option pour désactiver les messages système pour des utilisateurs spécifiques",
85
- "it": "Aggiunta l'opzione per non autenticare i nuovi utenti\nAggiunta l'opzione per disabilitare i messaggi di sistema per utenti specifici",
86
- "es": "Añadida la opción de no autenticar a los nuevos usuarios.\nSe agregó la opción para deshabilitar los mensajes del sistema para usuarios específicos.",
87
- "pl": "Dodano opcję, aby nie uwierzytelniać nowych użytkowników\nDodano opcję wyłączenia wiadomości systemowych dla określonych użytkowników",
88
- "zh-cn": "添加了不对新用户进行身份验证的选项\n添加了禁用特定用户的系统消息的选项"
89
89
  }
90
90
  },
91
91
  "title": "Telegram",
package/main.js CHANGED
@@ -383,6 +383,9 @@ function sendSystemMessage(text) {
383
383
  }
384
384
 
385
385
  function getStatus(id, state) {
386
+ if (!state) {
387
+ state = {val: 'State not set'};
388
+ }
386
389
  if (commands[id].type === 'boolean') {
387
390
  return `${commands[id].alias} => ${state.val ? commands[id].onStatus || _('ON-Status') : commands[id].offStatus || _('OFF-Status')}`;
388
391
  } else {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "iobroker.telegram",
3
3
  "description": "The adapter allows to send and receive telegram messages from ioBroker and to be a broker.",
4
- "version": "1.12.2",
4
+ "version": "1.12.3",
5
5
  "author": "bluefox <dogafox@gmail.com>",
6
6
  "homepage": "https://github.com/iobroker-community-adapters/ioBroker.telegram",
7
7
  "repository": {