iobroker.telegram 6.1.0 → 6.2.0

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/build/types.d.ts CHANGED
@@ -30,6 +30,8 @@ export interface TelegramConfig {
30
30
  storeRawRequest: boolean;
31
31
  text2command: string;
32
32
  assistantInstance: string;
33
+ /** Photos and videos go to the assistant instance too (default on) */
34
+ assistantMedia?: boolean;
33
35
  answerTimeoutSec: number;
34
36
  url: string;
35
37
  bind: string;
@@ -171,6 +173,8 @@ export interface SaveFileResult {
171
173
  info?: string;
172
174
  location?: string;
173
175
  path?: string;
176
+ /** `iobdisk://` URL of the stored file, readable by instances on every host (empty if not available) */
177
+ url?: string;
174
178
  error?: string;
175
179
  }
176
180
  /** Newest-first entry of a notification category instance. */
package/i18n/de.json CHANGED
@@ -19,5 +19,6 @@
19
19
  "Done": "Fertig",
20
20
  "ID \"%s\" not found.": "ID \"%s\" nicht gefunden.",
21
21
  "Started!": "Bot gestartet.",
22
- "uncertain": "unbestimmt"
22
+ "uncertain": "unbestimmt",
23
+ "The assistant did not answer in time.": "Der Assistent hat nicht rechtzeitig geantwortet."
23
24
  }
package/i18n/en.json CHANGED
@@ -19,5 +19,6 @@
19
19
  "Done": "Done",
20
20
  "ID \"%s\" not found.": "ID \"%s\" not found.",
21
21
  "Started!": "Started!",
22
- "uncertain": "uncertain"
22
+ "uncertain": "uncertain",
23
+ "The assistant did not answer in time.": "The assistant did not answer in time."
23
24
  }
package/i18n/es.json CHANGED
@@ -19,5 +19,6 @@
19
19
  "Done": "Hecho",
20
20
  "ID \"%s\" not found.": "No se encontró el ID \"%s\".",
21
21
  "Started!": "¡Empezado!",
22
- "uncertain": "incierto"
22
+ "uncertain": "incierto",
23
+ "The assistant did not answer in time.": "El asistente no respondió a tiempo."
23
24
  }
package/i18n/fr.json CHANGED
@@ -19,5 +19,6 @@
19
19
  "Done": "Terminé",
20
20
  "ID \"%s\" not found.": "ID \"%s\" non trouvé.",
21
21
  "Started!": "Commencé!",
22
- "uncertain": "incertain"
22
+ "uncertain": "incertain",
23
+ "The assistant did not answer in time.": "L'assistant n'a pas répondu à temps."
23
24
  }
package/i18n/it.json CHANGED
@@ -19,5 +19,6 @@
19
19
  "Done": "Fatto",
20
20
  "ID \"%s\" not found.": "ID \"%s\" non trovato.",
21
21
  "Started!": "Iniziato!",
22
- "uncertain": "incerto"
22
+ "uncertain": "incerto",
23
+ "The assistant did not answer in time.": "L'assistente non ha risposto in tempo."
23
24
  }
package/i18n/nl.json CHANGED
@@ -19,5 +19,6 @@
19
19
  "Done": "Gedaan",
20
20
  "ID \"%s\" not found.": "ID \"%s\" niet gevonden.",
21
21
  "Started!": "Begonnen!",
22
- "uncertain": "onbekend"
22
+ "uncertain": "onbekend",
23
+ "The assistant did not answer in time.": "De assistent heeft niet op tijd geantwoord."
23
24
  }
package/i18n/pl.json CHANGED
@@ -19,5 +19,6 @@
19
19
  "Done": "Gotowe",
20
20
  "ID \"%s\" not found.": "Nie znaleziono identyfikatora \"%s\".",
21
21
  "Started!": "Rozpoczęty!",
22
- "uncertain": "nieznany"
22
+ "uncertain": "nieznany",
23
+ "The assistant did not answer in time.": "Asystent nie odpowiedział na czas."
23
24
  }
package/i18n/pt.json CHANGED
@@ -19,5 +19,6 @@
19
19
  "Done": "Pronto",
20
20
  "ID \"%s\" not found.": "ID \"%s\" não foi encontrado.",
21
21
  "Started!": "O bot foi iniciado!",
22
- "uncertain": "incerto"
22
+ "uncertain": "incerto",
23
+ "The assistant did not answer in time.": "O assistente não respondeu a tempo."
23
24
  }
package/i18n/ru.json CHANGED
@@ -19,5 +19,6 @@
19
19
  "Done": "Готово",
20
20
  "ID \"%s\" not found.": "Идентификатор \" %s\" не найден.",
21
21
  "Started!": "Бот запущен!",
22
- "uncertain": "неизвестно"
22
+ "uncertain": "неизвестно",
23
+ "The assistant did not answer in time.": "Ассистент не ответил вовремя."
23
24
  }
package/i18n/uk.json CHANGED
@@ -19,5 +19,6 @@
19
19
  "Done": "Сонце",
20
20
  "ID \"%s\" not found.": "Не знайдено ID \"%s\".",
21
21
  "Started!": "Почати!",
22
- "uncertain": "невідомо"
22
+ "uncertain": "невідомо",
23
+ "The assistant did not answer in time.": "Асистент не відповів вчасно."
23
24
  }
package/i18n/zh-cn.json CHANGED
@@ -19,5 +19,6 @@
19
19
  "Done": "完毕",
20
20
  "ID \"%s\" not found.": "找不到ID“%s”。",
21
21
  "Started!": "开始!",
22
- "uncertain": "未知"
22
+ "uncertain": "未知",
23
+ "The assistant did not answer in time.": "助手未能及时回答。"
23
24
  }
package/io-package.json CHANGED
@@ -1,8 +1,21 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "telegram",
4
- "version": "6.1.0",
4
+ "version": "6.2.0",
5
5
  "news": {
6
+ "6.2.0": {
7
+ "en": "Questions to the `assistant` instance (text and voice) wait at most 2 minutes for the answer; after that the user gets \"The assistant did not answer in time.\" instead of no reply at all (e.g. when the assistant restarted meanwhile)\nPhotos and videos are forwarded to the `assistant` instance too: photos (an album as one question, at most 4) with their caption as the question, videos are stored in the file storage of the instance (folder `assistant`, the newest 20) and only their place goes along. Can be switched off with \"Photos and videos to the assistant\"\nAdded the state `communicate.pathFileUrl`: the `iobdisk://` URL of the last received file (e.g. `iobdisk://pi4/telegram.0/video/2026-11-04_10-00-00.mp4`), which instances on other hosts can read with `readDiskFile(url)` - the path in `communicate.pathFile` is only valid on the host of telegram. Needs js-controller 8.0 and `saveFilesTo: filesystem`, otherwise the state stays empty",
8
+ "de": "Fragen an den Assistenten (Text und Stimme) warten maximal 2 Minuten. Danach erhält der Nutzer „Der Assistent hat nicht rechtzeitig geantwortet“ statt gar keine Antwort (z. B. wenn der Assistent zwischenzeitlich neu gestartet wurde)\nFotos und Videos werden auch an die Assistenteninstanz weitergeleitet: Fotos (ein Album als eine Frage, maximal 4) mit der Überschrift als Frage, Videos werden im Dateispeicher der Instanz gespeichert (Ordner `Assistent`, die neuesten 20) und nur ihr Platz geht mit. Abschaltbar mit „Fotos und Videos für den Assistenten“\nStatus `communicate.pathFileUrl` hinzugefügt: die `iobdisk: //` URL der zuletzt empfangenen Datei (z. B. `iobdisk: //pi4/telegram.0/video/2026-11-04_10-00-00.mp4`), die Instanzen auf anderen Hosts mit `ReadDiskFile (url) `lesen können — der Pfad in `Communicate.PathFile` ist nur auf dem Host von Telegram gültig. Benötigt JS-Controller 8.0 und `SaveFilesTo: filesystem`, sonst bleibt der Status leer",
9
+ "ru": "Вопросы к экземпляру `assistant` (текстовые и голосовые) ждут ответа не более 2 минут; после этого пользователь получает сообщение «Ассистент не ответил вовремя», а не вообще ничего (например, когда ассистент тем временем перезапустился)\nФотографии и видео также передаются в экземпляр `assistant`: фотографии (альбом, состоящий из одного вопроса, максимум 4 вопроса) с заголовком в виде вопроса, видео хранятся в файловом хранилище экземпляра (папка `assistant`, новых 20) и остается только их место. Можно отключить, выбрав опцию «Фото и видео ассистенту»\nДобавлено состояние `communicate.pathFileUrl`: URL-адрес последнего полученного файла (например, iobdisk: //pi4/telegram.0/video/2026-11-04_10-00-00.mp4`), который экземпляры на других хостах могут прочитать с помощью `readDiskFile (url) `— путь в `Communicate.pathFile` действителен только на хосте телеграммы. Требуется js-контроллер 8.0 и `SaveFilesTo: файловая система`, в противном случае состояние остается пустым",
10
+ "pt": "As perguntas para a instância “assistente” (texto e voz) esperam no máximo 2 minutos; depois disso, o usuário recebe “O assistente não respondeu a tempo” em vez de não responder (por exemplo, quando o assistente reiniciou)\nFotos e vídeos também são encaminhados para a instância `assistente`: fotos (um álbum como uma pergunta, no máximo 4) com a legenda, os vídeos são armazenados no arquivo da instância (pasta `assistente`, as 20 mais novas) e só seu lugar aparece. Pode ser desligado com “Fotos e vídeos no assistente”\nAdicionado o estado `communicate.pathFileUrl`: a URL `iobdisk: //` do último arquivo recebido (por exemplo, `iobdisk: //pi4/telegram.0/video/2026-11-04_10-00-00.mp4`), que em outros hosts pode ler com `readDiskFile (url) `- o caminho em `communicate.pathfile` só é válido no host de telegrama. Precisa de js-controller 8.0 e `saveFilesTo: filesystem`, senão o estado fica vazio",
11
+ "nl": "Vragen aan de instantie van de `assistent` (tekst en stem) wachten maximaal 2 minuten op het antwoord; daarna krijgt de gebruiker „De assistent heeft niet op tijd geantwoord”. In plaats van helemaal geen antwoord (bijvoorbeeld toen de assistent ondertussen opnieuw werd opgestart)\nFoto's en video's worden ook doorgestuurd naar de instantie van de `assistent`: foto's (een album als één vraag, maximaal 4) met het bijschrift als vraag, video's worden opgeslagen in de bestandsopslag van de instance (map `assistant`, de nieuwste 20) en alleen hun plaats wordt meegenomen. Kan worden uitgeschakeld met „Foto's en video's voor de assistent”\nDe status `Communicate.pathFileURL` toegevoegd: de `iobdisk: //` URL van het laatst ontvangen bestand (bijv. `iobdisk: //pi4/telegram.0/video/2026-11-04_10-00-00.mp4`), welke instanties op andere hosts kunnen worden gelezen met `ReadDiskFile (url) `- het pad in `Communicate.pathFile` is alleen geldig op de host van telegram. Heeft js-controller 8.0 en `SaveFilesTo: bestandssysteem` nodig, anders blijft de status leeg",
12
+ "fr": "Les questions posées à l'instance « assistant » (texte et voix) attendent la réponse au plus 2 minutes ; ensuite, l'utilisateur reçoit « L'assistant n'a pas répondu à temps » au lieu de « aucune réponse » (par exemple lorsque l'assistant a redémarré entre-temps)\nLes photos et vidéos sont également transmises à l'instance « assistant » : photos (un album contenant une question, au plus 4) avec leur légende en guise de question, les vidéos sont stockées dans le dossier de l'instance (dossier « assistant », les 20 plus récents) et seule leur place est prise en compte. Peut être désactivée avec « Photos et vidéos de l'assistant »\nAjout de l'état « communicate.pathFileUrl » : l'URL du dernier fichier reçu (par exemple « iobdisk : //pi4/telegram.0/video/2026-11-04_10-00-00.mp4 »), que les instances des autres hôtes peuvent lire avec « readDiskFile (url) ». Le chemin de « communicate.pathFile » n'est valide que sur l'hôte de Telegram. Nécessite js-controller 8.0 et `SaveFilesTo : filesystem`, sinon l'état reste vide",
13
+ "it": "Le domande all'istanza «assistente» (testo e voce) attendono al massimo 2 minuti; dopodiché l'utente riceve «L'assistente non ha risposto in tempo». Invece di nessuna risposta (ad esempio al riavvio)\nLe foto e i video vengono inoltrati anche all'istanza «assistente»: foto (un album con una domanda, al massimo 4) con la didascalia come domanda, i video vengono archiviati nell'archivio dell'istanza (cartella «assistente», la 20 più recente). Può essere disattivato con «Foto e video per l'assistente»\nAggiunto lo stato `communicate.pathFileUrl`: l'URL `iobdisk: //` dell'ultimo file ricevuto (ad es. `iobdisk: //pi4/telegram.0/video/2026-11-04_10-00-00.mp4`), che le istanze su altri host possono leggere con `readDiskFile (url) `- il percorso in `Communicate.pathFile` è valido solo su Telegram. Servono js-controller 8.0 e `saveFilesTo: filesystem`, altrimenti lo stato è vuoto",
14
+ "es": "Las preguntas a la instancia de «asistente» (texto y voz) esperan como máximo 2 minutos para recibir la respuesta; después, el usuario recibe «El asistente no respondió a tiempo» en lugar de no responder (por ejemplo, cuando el asistente se reinició)\nLas fotos y los vídeos también se reenvían a la instancia del «asistente»: fotos (un álbum con una pregunta, como máximo 4) con la leyenda como pregunta, los vídeos se almacenan en el almacenamiento de archivos de la instancia (carpeta «asistente», los 20 más recientes) y solo su lugar aparece. Se puede desactivar con «Fotos y vídeos para el asistente»\nSe ha añadido el estado `communicate.pathfileUrl`: la URL `iobdisk: //` del último archivo recibido (p. ej., `iobdisk: //pi4/telegram.0/video/2026-11-04_10-00-00.mp4`), que las instancias de otros hosts pueden leer con `readDiskFile (url) `: la ruta de `Communicate.pathFile` solo es válida en el host de Telegram. Necesita js-controller 8.0 y `SaveFilesTo: filesystem`; si no, el estado permanece vacío",
15
+ "pl": "Pytania do instancji „asystenta” (tekst i głos) czekają na odpowiedź maksymalnie 2 minuty; następnie użytkownik otrzymuje „Asystent nie odpowiedział na czas” zamiast żadnej odpowiedzi (np. gdy asystent ponownie uruchomił się w międzyczasie)\nZdjęcia i filmy są również przekazywane do instancji `asystent`: zdjęcia (album jako jedno pytanie, najwyżej 4) z podpisem jako pytanie, filmy są przechowywane w magazynie plików instancji (folder `asystent`, najnowsze 20) i tylko ich miejsce idzie dalej. Można wyłączyć za pomocą „Zdjęcia i filmy do asystenta”\nDodano stan `Communicate.pathFileUrl`: `iobdisk: //` adres URL ostatniego otrzymanego pliku (np. `iobdisk: //pi4/telegram.0/video/2026-11-04_10-00-00.mp4`), który instancje na innych hostach mogą odczytać za pomocą `ReadDiskFile (url) `- ścieżka w `Communicate.pathFile` jest ważna tylko na hoście telegramu. Potrzebuje js-controller 8.0 i `SaveFileTo: filesystem`, w przeciwnym razie stan pozostaje pusty",
16
+ "uk": "Питання до екземпляру «помічника» (текстові та голосові) чекають не більше 2 хвилин на відповідь; після цього користувач отримує «Помічник не відповів вчасно» замість того, щоб взагалі не відповісти (наприклад, коли помічник перезапустився тим часом)\nФотографії та відео також пересилаються до екземпляра `assistant`: фотографії (альбом як одне питання, максимум 4) з їх підписом як питання, відео зберігаються у файловому сховищі екземпляра (папка `assistant`, новітня 20) і лише їх місце йде. Можна вимкнути за допомогою «Фото та відео до помічника»\nДодано стан `Communicate.pathFileUrl`: `iobdisk: //` URL останнього отриманого файлу (наприклад `iobdisk: //pi4/telegram.0/video/2026-11-04_10-00-00.mp4`), який екземпляри на інших хостах можуть читати за допомогою `ReadDiskFile (url) `- шлях у `Communicate.pathFile` дійсний лише на хості телеграми. Потрібні js-контролер 8.0 і `SaveFileTo: файлова система`, інакше стан залишається порожнім",
17
+ "zh-cn": "向 “助手” 实例(文本和语音)提问最多等待 2 分钟才能得到答案;之后用户会得到 “助手没有及时回答”。而不是根本没有回复(例如,当助手同时重启时)\n照片和视频也被转发到 “助手” 实例:照片(一个相册作为一个问题,最多4个),标题作为问题,视频存储在实例的文件存储空间中(文件夹 “assistant”,最新的20个),只有它们的位置。可以通过 “照片和视频交给助手” 关闭\n添加了状态 `communicate.pathFileURL`:上次收到的文件的 `iobdisk: //pi4/telegram.0/video/2026-11-04_10-00-00.mp4`),其他主机上的实例可以使用 `readDiskFile (url) `读取——`Communicate.pathFile`中的路径仅在电报主机上有效。需要 js-controller 8.0 和 saveFilesTo: filesystem,否则状态保持为空"
18
+ },
6
19
  "6.1.0": {
7
20
  "en": "Voice messages are forwarded to the configured `assistant` instance: it recognises the speech and the answer is sent back to the chat with the recognised text in front (🎤 …). The same user check as for text messages applies; a voice message with a caption is answered by its caption. Needs ioBroker.assistant with voice enabled, a speech recognition engine and ffmpeg on the host\n`send` can return the ids of the sent messages again (`returnMessageIds: true`), to edit or delete the message later; failed recipients come with the reason (#1389)\nThe Blockly block \"telegram\" has an optional input for the topic (thread id) of a forum group (#952)\nCompleted the Blockly translations for Ukrainian and Chinese",
8
21
  "de": "Sprachnachrichten werden an den konfigurierten `Assistenten`-Instanz weitergeleitet: er erkennt die Sprache und sendet die Antwort mit dem Text davor zurück (🎤...). Es gilt die gleiche Benutzerprüfung wie bei SMS; eine Sprachnachricht wird mit Text beantwortet. Benötigt ioBroker.Assistant mit Spracherkennung und FFMPEG auf dem Host\n`send` kann die IDs der E-Mails erneut zurückgeben (`returnMessageIds: true`), um sie später zu bearbeiten oder zu löschen. Fehlgeschlagene Empfänger geben den Grund an (#1389)\nDer Blockly-Block „Telegram“ hat eine optionale Eingabe für das Thema (#952)\nBlockly für Ukrainisch und Chinesisch übersetzt",
@@ -80,19 +93,6 @@
80
93
  "pl": "Składnik admin został przeniesiony do TypeScript",
81
94
  "uk": "Компонент адміністратора мігрувався на TypeScript",
82
95
  "zh-cn": "管理员组件已迁移到类型脚本"
83
- },
84
- "4.0.0": {
85
- "en": "NodeJS >= 20.x and js-controller >= 6 is required\n\n* Responsive Design added\n* Allow async function calls in ask callback function",
86
- "de": "NodeJS >= 20.x und js-Controller >= 6 ist erforderlich\n\n* Responsive Design hinzugefügt\n* Lassen Sie Async-Funktion Anrufe in Fragen Callback-Funktion",
87
- "ru": "NodeJS >= 20.x и js-controller >= 6 требуется\n\n* Добавлен ответный дизайн\n* Разрешить вызов функции асинка в функции вызова",
88
- "pt": "NodeJS >= 20.x e js-controller >= 6 é necessário\n\n* Design responsivo adicionado\n* Permitir chamadas de função de sincronização em pedir função de retorno",
89
- "nl": "Van niet-gelegeerd staal 6 is vereist\n\n* Responsive Design toegevoegd\n* Async-functieaanroepen toestaan in vraagterugroepfunctie",
90
- "fr": "NodeJS >= 20.x et js-controller >= 6 est nécessaire\n\n* Design sensible ajouté\n* Autorise les appels de fonction async dans la fonction callback",
91
- "it": "NodeJS >= 20.x e js-controller >= 6 è richiesto\n\n* Responsive Design aggiunto\n# Consentire chiamate funzione asincrona a chiedere la funzione callback",
92
- "es": "NodeJS ю= 20.x y js-controller Se requiere 6\n\n* Diseño responsable añadido\n* Permitir llamadas de función asinc en función de llamada",
93
- "pl": "NodeJS > = 20 x i kontroler js- > = 6 jest wymagane\n\n* Responsive Design dodany\n* Pozwól na wywołanie funkcji async w funkcji callback",
94
- "uk": "NodeJS >= 20.x та js-controller >= 6 обов'язковий\n\n* Додано адаптивний дизайн\nІм'я * Усі виклики функції async за допомогою функції виклику",
95
- "zh-cn": "节点JS20x和js控制器QQ 需要6个\n\n* 添加了反应设计\n* 《大会正式记录,第五十八届会议,补编第5号》(A/C.6/61/Rev.1)。 允许调用调用调用函数"
96
96
  }
97
97
  },
98
98
  "messages": [
@@ -285,6 +285,7 @@
285
285
  "storeRawRequest": false,
286
286
  "text2command": "",
287
287
  "assistantInstance": "",
288
+ "assistantMedia": true,
288
289
  "answerTimeoutSec": 60,
289
290
  "url": "",
290
291
  "bind": "0.0.0.0",
@@ -911,6 +912,30 @@
911
912
  "write": false
912
913
  },
913
914
  "native": {}
915
+ },
916
+ {
917
+ "_id": "communicate.pathFileUrl",
918
+ "type": "state",
919
+ "common": {
920
+ "name": {
921
+ "en": "URL of the last received file (iobdisk://, readable from every host)",
922
+ "de": "URL der zuletzt empfangenen Datei (iobdisk://, von jedem Host lesbar)",
923
+ "ru": "URL последнего полученного файла (iobdisk://, читается с любого хоста)",
924
+ "pt": "URL do último arquivo recebido (iobdisk://, legível a partir de qualquer host)",
925
+ "nl": "URL van het laatst ontvangen bestand (iobdisk://, leesbaar vanaf elke host)",
926
+ "fr": "URL du dernier fichier reçu (iobdisk://, lisible depuis chaque hôte)",
927
+ "it": "URL dell'ultimo file ricevuto (iobdisk://, leggibile da ogni host)",
928
+ "es": "URL del último archivo recibido (iobdisk://, legible desde cualquier host)",
929
+ "pl": "URL ostatnio odebranego pliku (iobdisk://, czytelny z każdego hosta)",
930
+ "uk": "URL останнього отриманого файлу (iobdisk://, читається з будь-якого хоста)",
931
+ "zh-cn": "最后收到的文件的 URL(iobdisk://,可从每台主机读取)"
932
+ },
933
+ "type": "string",
934
+ "role": "url",
935
+ "read": true,
936
+ "write": false
937
+ },
938
+ "native": {}
914
939
  }
915
940
  ]
916
941
  }
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": "6.1.0",
4
+ "version": "6.2.0",
5
5
  "author": "bluefox <dogafox@gmail.com>",
6
6
  "contributors": [
7
7
  "bluefox <dogafox@gmail.com>",