iobroker.telegram 6.3.0 → 6.4.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/README.md +3 -4
- package/admin/i18n/de.json +4 -0
- package/admin/i18n/en.json +4 -0
- package/admin/i18n/es.json +4 -0
- package/admin/i18n/fr.json +4 -0
- package/admin/i18n/it.json +4 -0
- package/admin/i18n/nl.json +4 -0
- package/admin/i18n/pl.json +4 -0
- package/admin/i18n/pt.json +4 -0
- package/admin/i18n/ru.json +4 -0
- package/admin/i18n/uk.json +4 -0
- package/admin/i18n/zh-cn.json +4 -0
- package/admin/jsonConfig.json +23 -0
- package/admin/rules/@mf-types.zip +0 -0
- package/build/main.js +95 -14
- package/build/main.js.map +1 -1
- package/build/types.d.ts +4 -0
- package/i18n/de.json +2 -1
- package/i18n/en.json +2 -1
- package/i18n/es.json +2 -1
- package/i18n/fr.json +2 -1
- package/i18n/it.json +2 -1
- package/i18n/nl.json +2 -1
- package/i18n/pl.json +2 -1
- package/i18n/pt.json +2 -1
- package/i18n/ru.json +2 -1
- package/i18n/uk.json +2 -1
- package/i18n/zh-cn.json +2 -1
- package/io-package.json +40 -14
- package/package.json +1 -1
package/build/types.d.ts
CHANGED
|
@@ -34,6 +34,10 @@ export interface TelegramConfig {
|
|
|
34
34
|
assistantInstance: string;
|
|
35
35
|
/** Photos and videos go to the assistant instance too (default on) */
|
|
36
36
|
assistantMedia?: boolean;
|
|
37
|
+
/** Speech recognition instance (ioBroker.ai-parakeet): voice messages are recognised and go on as text */
|
|
38
|
+
speechToText?: string;
|
|
39
|
+
/** Send the recognised text of a voice message back to the chat (default on) */
|
|
40
|
+
speechToTextEcho?: boolean;
|
|
37
41
|
answerTimeoutSec: number;
|
|
38
42
|
url: string;
|
|
39
43
|
bind: string;
|
package/i18n/de.json
CHANGED
|
@@ -20,5 +20,6 @@
|
|
|
20
20
|
"ID \"%s\" not found.": "ID \"%s\" nicht gefunden.",
|
|
21
21
|
"Started!": "Bot gestartet.",
|
|
22
22
|
"uncertain": "unbestimmt",
|
|
23
|
-
"The assistant did not answer in time.": "Der Assistent hat nicht rechtzeitig geantwortet."
|
|
23
|
+
"The assistant did not answer in time.": "Der Assistent hat nicht rechtzeitig geantwortet.",
|
|
24
|
+
"The voice message could not be recognised.": "Die Sprachnachricht konnte nicht erkannt werden."
|
|
24
25
|
}
|
package/i18n/en.json
CHANGED
|
@@ -20,5 +20,6 @@
|
|
|
20
20
|
"ID \"%s\" not found.": "ID \"%s\" not found.",
|
|
21
21
|
"Started!": "Started!",
|
|
22
22
|
"uncertain": "uncertain",
|
|
23
|
-
"The assistant did not answer in time.": "The assistant did not answer in time."
|
|
23
|
+
"The assistant did not answer in time.": "The assistant did not answer in time.",
|
|
24
|
+
"The voice message could not be recognised.": "The voice message could not be recognised."
|
|
24
25
|
}
|
package/i18n/es.json
CHANGED
|
@@ -20,5 +20,6 @@
|
|
|
20
20
|
"ID \"%s\" not found.": "No se encontró el ID \"%s\".",
|
|
21
21
|
"Started!": "¡Empezado!",
|
|
22
22
|
"uncertain": "incierto",
|
|
23
|
-
"The assistant did not answer in time.": "El asistente no respondió a tiempo."
|
|
23
|
+
"The assistant did not answer in time.": "El asistente no respondió a tiempo.",
|
|
24
|
+
"The voice message could not be recognised.": "No se pudo reconocer el mensaje de voz."
|
|
24
25
|
}
|
package/i18n/fr.json
CHANGED
|
@@ -20,5 +20,6 @@
|
|
|
20
20
|
"ID \"%s\" not found.": "ID \"%s\" non trouvé.",
|
|
21
21
|
"Started!": "Commencé!",
|
|
22
22
|
"uncertain": "incertain",
|
|
23
|
-
"The assistant did not answer in time.": "L'assistant n'a pas répondu à temps."
|
|
23
|
+
"The assistant did not answer in time.": "L'assistant n'a pas répondu à temps.",
|
|
24
|
+
"The voice message could not be recognised.": "Le message vocal n'a pas pu être reconnu."
|
|
24
25
|
}
|
package/i18n/it.json
CHANGED
|
@@ -20,5 +20,6 @@
|
|
|
20
20
|
"ID \"%s\" not found.": "ID \"%s\" non trovato.",
|
|
21
21
|
"Started!": "Iniziato!",
|
|
22
22
|
"uncertain": "incerto",
|
|
23
|
-
"The assistant did not answer in time.": "L'assistente non ha risposto in tempo."
|
|
23
|
+
"The assistant did not answer in time.": "L'assistente non ha risposto in tempo.",
|
|
24
|
+
"The voice message could not be recognised.": "Non è stato possibile riconoscere il messaggio vocale."
|
|
24
25
|
}
|
package/i18n/nl.json
CHANGED
|
@@ -20,5 +20,6 @@
|
|
|
20
20
|
"ID \"%s\" not found.": "ID \"%s\" niet gevonden.",
|
|
21
21
|
"Started!": "Begonnen!",
|
|
22
22
|
"uncertain": "onbekend",
|
|
23
|
-
"The assistant did not answer in time.": "De assistent heeft niet op tijd geantwoord."
|
|
23
|
+
"The assistant did not answer in time.": "De assistent heeft niet op tijd geantwoord.",
|
|
24
|
+
"The voice message could not be recognised.": "Het spraakbericht kon niet worden herkend."
|
|
24
25
|
}
|
package/i18n/pl.json
CHANGED
|
@@ -20,5 +20,6 @@
|
|
|
20
20
|
"ID \"%s\" not found.": "Nie znaleziono identyfikatora \"%s\".",
|
|
21
21
|
"Started!": "Rozpoczęty!",
|
|
22
22
|
"uncertain": "nieznany",
|
|
23
|
-
"The assistant did not answer in time.": "Asystent nie odpowiedział na czas."
|
|
23
|
+
"The assistant did not answer in time.": "Asystent nie odpowiedział na czas.",
|
|
24
|
+
"The voice message could not be recognised.": "Nie udało się rozpoznać wiadomości głosowej."
|
|
24
25
|
}
|
package/i18n/pt.json
CHANGED
|
@@ -20,5 +20,6 @@
|
|
|
20
20
|
"ID \"%s\" not found.": "ID \"%s\" não foi encontrado.",
|
|
21
21
|
"Started!": "O bot foi iniciado!",
|
|
22
22
|
"uncertain": "incerto",
|
|
23
|
-
"The assistant did not answer in time.": "O assistente não respondeu a tempo."
|
|
23
|
+
"The assistant did not answer in time.": "O assistente não respondeu a tempo.",
|
|
24
|
+
"The voice message could not be recognised.": "Não foi possível reconhecer a mensagem de voz."
|
|
24
25
|
}
|
package/i18n/ru.json
CHANGED
|
@@ -20,5 +20,6 @@
|
|
|
20
20
|
"ID \"%s\" not found.": "Идентификатор \" %s\" не найден.",
|
|
21
21
|
"Started!": "Бот запущен!",
|
|
22
22
|
"uncertain": "неизвестно",
|
|
23
|
-
"The assistant did not answer in time.": "Ассистент не ответил вовремя."
|
|
23
|
+
"The assistant did not answer in time.": "Ассистент не ответил вовремя.",
|
|
24
|
+
"The voice message could not be recognised.": "Не удалось распознать голосовое сообщение."
|
|
24
25
|
}
|
package/i18n/uk.json
CHANGED
|
@@ -20,5 +20,6 @@
|
|
|
20
20
|
"ID \"%s\" not found.": "Не знайдено ID \"%s\".",
|
|
21
21
|
"Started!": "Почати!",
|
|
22
22
|
"uncertain": "невідомо",
|
|
23
|
-
"The assistant did not answer in time.": "Асистент не відповів вчасно."
|
|
23
|
+
"The assistant did not answer in time.": "Асистент не відповів вчасно.",
|
|
24
|
+
"The voice message could not be recognised.": "Не вдалося розпізнати голосове повідомлення."
|
|
24
25
|
}
|
package/i18n/zh-cn.json
CHANGED
package/io-package.json
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "telegram",
|
|
4
|
-
"version": "6.
|
|
4
|
+
"version": "6.4.0",
|
|
5
5
|
"news": {
|
|
6
|
+
"6.4.0": {
|
|
7
|
+
"en": "Voice messages can be converted to text by an `ai-parakeet` instance (new setting \"Speech recognition instance\"); the text is then processed like a typed message (`communicate.request`, commands, `text2command`, assistant) and also written to the new state `communicate.requestVoiceText`. \"Show the recognised text in the chat\" answers with what was understood (🎤 …)",
|
|
8
|
+
"de": "Sprachnachrichten können von einer `ai-parakeet`-Instanz in Text umgewandelt werden (neue Einstellung „Spracherkennungs-Instanz“); der Text wird dann wie eine getippte Nachricht verarbeitet (`communicate.request`, Befehle, `text2command`, Assistent) und zusätzlich in den neuen State `communicate.requestVoiceText` geschrieben. „Erkannten Text im Chat anzeigen“ antwortet mit dem, was verstanden wurde (🎤 …)",
|
|
9
|
+
"ru": "Голосовые сообщения можно преобразовать в текст с помощью экземпляра `ai-parakeet` (новая настройка «Экземпляр распознавания речи»); затем текст обрабатывается как набранное сообщение (`communicate.request`, команды, `text2command`, ассистент) и также записывается в новое состояние `communicate.requestVoiceText`. «Показывать распознанный текст в чате» отвечает тем, что было понято (🎤 …)",
|
|
10
|
+
"pt": "As mensagens de voz podem ser convertidas em texto por uma instância `ai-parakeet` (nova configuração «Instância de reconhecimento de fala»); o texto é então processado como uma mensagem digitada (`communicate.request`, comandos, `text2command`, assistente) e também gravado no novo estado `communicate.requestVoiceText`. «Mostrar o texto reconhecido no chat» responde com o que foi entendido (🎤 …)",
|
|
11
|
+
"nl": "Spraakberichten kunnen door een `ai-parakeet`-instantie in tekst worden omgezet (nieuwe instelling „Instantie voor spraakherkenning”); de tekst wordt dan verwerkt als een getypt bericht (`communicate.request`, commando’s, `text2command`, assistent) en ook naar de nieuwe state `communicate.requestVoiceText` geschreven. „Herkende tekst in de chat tonen” antwoordt met wat er verstaan is (🎤 …)",
|
|
12
|
+
"fr": "Les messages vocaux peuvent être convertis en texte par une instance `ai-parakeet` (nouveau réglage « Instance de reconnaissance vocale ») ; le texte est ensuite traité comme un message saisi (`communicate.request`, commandes, `text2command`, assistant) et également écrit dans le nouvel état `communicate.requestVoiceText`. « Afficher le texte reconnu dans le chat » répond avec ce qui a été compris (🎤 …)",
|
|
13
|
+
"it": "I messaggi vocali possono essere convertiti in testo da un'istanza `ai-parakeet` (nuova impostazione «Istanza di riconoscimento vocale»); il testo viene poi elaborato come un messaggio digitato (`communicate.request`, comandi, `text2command`, assistente) e scritto anche nel nuovo stato `communicate.requestVoiceText`. «Mostra il testo riconosciuto nella chat» risponde con ciò che è stato capito (🎤 …)",
|
|
14
|
+
"es": "Los mensajes de voz se pueden convertir en texto con una instancia de `ai-parakeet` (nuevo ajuste «Instancia de reconocimiento de voz»); el texto se procesa entonces como un mensaje escrito (`communicate.request`, comandos, `text2command`, asistente) y también se escribe en el nuevo estado `communicate.requestVoiceText`. «Mostrar el texto reconocido en el chat» responde con lo que se ha entendido (🎤 …)",
|
|
15
|
+
"pl": "Wiadomości głosowe mogą być zamieniane na tekst przez instancję `ai-parakeet` (nowe ustawienie „Instancja rozpoznawania mowy”); tekst jest następnie przetwarzany jak wpisana wiadomość (`communicate.request`, polecenia, `text2command`, asystent) i zapisywany także w nowym stanie `communicate.requestVoiceText`. „Pokaż rozpoznany tekst na czacie” odpowiada tym, co zostało zrozumiane (🎤 …)",
|
|
16
|
+
"uk": "Голосові повідомлення можна перетворити на текст за допомогою екземпляра `ai-parakeet` (нове налаштування «Екземпляр розпізнавання мовлення»); потім текст обробляється як набране повідомлення (`communicate.request`, команди, `text2command`, асистент) і також записується в новий стан `communicate.requestVoiceText`. «Показувати розпізнаний текст у чаті» відповідає тим, що було зрозуміло (🎤 …)",
|
|
17
|
+
"zh-cn": "语音消息可以由 `ai-parakeet` 实例转换为文本(新设置“语音识别实例”);然后该文本像键入的消息一样处理(`communicate.request`、命令、`text2command`、助手),并写入新状态 `communicate.requestVoiceText`。“在聊天中显示识别出的文本”会先回复听懂的内容(🎤 …)"
|
|
18
|
+
},
|
|
6
19
|
"6.3.0": {
|
|
7
20
|
"en": "Added \"Delete received files after (days)\": saved voice messages, photos, videos, audio files and documents older than that are deleted, in the file system or in the file storage, checked every hour. 0 (default) keeps them as before",
|
|
8
21
|
"de": "„Empfangene Dateien löschen nach (Tagen)“ hinzugefügt: gespeicherte Sprachnachrichten, Fotos, Videos, Audiodateien und Dokumente werden stündlich im Dateisystem oder im Speicher gelöscht. 0 (Standard)",
|
|
@@ -80,19 +93,6 @@
|
|
|
80
93
|
"pl": "Adapter wymaga teraz Node.js >= 22.19 (wymagane przez undici 8)\nPołączenie z serwerami telegramu może być kierowane przez proxy HTTP (S) lub SOCKS5 (nowe ustawienia „Użyj proxy”; stare pola proxy były bez funkcji od lat)\nPrzemigrowany do `node-telegram-bot-api` v2. Aktualizacje są teraz odbierane za pomocą długiego sondowania, więc ustawienie „Interwał głosowania” stało się przestarzałe i zostało usunięte z okna konfiguracji. Błędy wyrzucane podczas przetwarzania aktualizacji są rejestrowane przez adapter zamiast trafiać na konsolę\nPuste pole „API URL” nie przerywa już każdego wywołania API za pomocą „EFATAL: Nie udało się przeanalizować adresu URL” - domyślna wartość „https://api.telegram.org” jest używana ponownie (#1371)\nInstancja `text2command`/`assistant` przechowywana w długiej formie (`system.adapter.text2command.0`, zapisana przez interfejs konfiguracji przed wersją 1.12.6) jest migrowana do krótkiego formularza podczas uruchamiania, więc okno dialogowe konfiguracji ponownie wyświetla wybrane wystąpienie (#1365)\nDodano stany „Communicate.requestLocationLive” (lokalizacja na żywo jest nadal udostępniana), „Communicate.requestLocationHeading” i „Communicate.requestLocationAccuracy” dla otrzymanych (na żywo) lokalizacji",
|
|
81
94
|
"uk": "Адаптер вимагає Node.js >= 22.19 зараз (потрібно для undici 8)\nПідключення до телеграм-серверів можна маршрутизувати через проксі HTTP (S) або SOCKS5 (нові налаштування «Використовувати проксі»; старі поля проксі були без функції протягом багатьох років)\nПереміщено до `вузла-телеграм-бот-api` v2. Оновлення тепер надходять за допомогою тривалого опитування, тому параметр «Інтервал опитування» став застарілим і був видалений з діалогового вікна налаштування. Помилки, викликані під час обробки оновлення, реєструються адаптером, а не потрапляють на консоль\nПорожнє поле «URL API» більше не розбиває кожен виклик API з «EFATAL: Не вдалося проаналізувати URL» - знову використовується типовий `https://api.telegram.org` (#1371)\nЕкземпляр `text2command`/`assistant`, що зберігається у довгій формі (`system.adapter.text2command.0`, написаний інтерфейсом конфігурації до v1.12.6) переноситься до короткої форми під час запуску, тому діалогове вікно налаштування знову показує вибраний екземпляр (#1365)\nДодано стани `Communicate.requestLocationLive` (реальне місцезнаходження все ще ділиться), `Communicate.requestLocationHeading` та `Communicate.requestLocationAccuracy` для отриманих (живих) місць",
|
|
82
95
|
"zh-cn": "适配器现在需要 Node.js >= 22.19(undici 8 需要)\n与电报服务器的连接可以通过 HTTP (S) 或 SOCKS5 代理进行路由(新的 “使用代理” 设置;旧的代理字段多年来一直没有功能)\n迁移到 `node-telegram-bot-api` v2。现在通过长轮询接收更新,因此 “轮询间隔” 设置已过时并已从配置对话框中删除。处理更新时引发的错误由适配器记录,而不是最终出现在控制台上\n空的 “API URL” 字段不再使用 “EFATAL:无法解析 URL” 打断每个 API 调用——再次使用默认的 https://api.telegram.org(#1371)\n以长格式存储的 `text2command`/`assistant` 实例(`system.adapter.text2command.0`,由 v1.12.6 之前的配置 UI 编写)会在启动时迁移到短格式,因此配置对话框会再次显示所选实例 (#1365)\n为接收(实时)位置添加了 “Communicate.requestLocationLocationLive”(实时位置仍在共享中)、“Communicate.requestLocationHeading” 和 “Communicate.requestLocationAccuracy”"
|
|
83
|
-
},
|
|
84
|
-
"5.0.3": {
|
|
85
|
-
"en": "Fixed: the configured text2command/assistant instance may now also be stored in the long form (`system.adapter.text2command.0`) - the alive check no longer fails with \"instance is not running\"",
|
|
86
|
-
"de": "Fixed: Die konfigurierte text2command/assistant instance kann nun auch im Long-Formular (`system.adapter.text2command.0`) gespeichert werden - der Live-Check schlägt nicht mehr mit \"instance is not running\" fehl",
|
|
87
|
-
"ru": "Исправлено: сконфигурированный экземпляр text2command/assistant теперь также может храниться в длинной форме (\"system.adapter.text2command.0\") - живой чек больше не выходит из строя с \"instance is not run\"",
|
|
88
|
-
"pt": "Corrigido: a instância configurada text2command/assistente pode agora também ser armazenada no formulário longo (`system.adapter.text2command.0`) - a verificação viva não falha mais com \"instance is not executing\"",
|
|
89
|
-
"nl": "Fixed: de geconfigureerde tekst2command/assistant instantie kan nu ook worden opgeslagen in de lange vorm (",
|
|
90
|
-
"fr": "Correction : l'instance text2command/assistant configurée peut désormais être stockée dans la forme longue (`system.adapter.text2command.0`) - la vérification vivante ne échoue plus avec \"l'installation n'est pas en cours d'exécution\"",
|
|
91
|
-
"it": "Risolto: l'istanza di text2command/assistant configurata può ora essere memorizzata nella forma lunga (`system.adapter.text2command.0`) - il controllo vivo non manca più con \"l'instanza non è in esecuzione\"",
|
|
92
|
-
"es": "Fijado: el texto configurado2command/asstant instancia puede ser almacenado en la forma larga (`system.adapter.text2command.0`) - el cheque vivo ya no falla con \"la posición no está funcionando\"",
|
|
93
|
-
"pl": "Naprawiono: skonfigurowana instancja text2command / assistant może być teraz również przechowywana w długiej formie ('system.adapter.text2command.0') - kontrola żywa nie zawodzi przy \"instance nie jest uruchomiona\"",
|
|
94
|
-
"uk": "Виправлено: налаштований текст2command/assistant екземпляр може тепер також зберігатися в довгостроковій формі (`system.adapter.text2command.0`) - живий чек більше не виходить з \"інтенсивом не працює\"",
|
|
95
|
-
"zh-cn": "固定 : 已配置的文本2 命令/ 辅助实例现在也可能以长窗体( 'system. adapter. text2 command. 0') 存储 - 活的检查不再以“ 无效运行” 失败 "
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
"messages": [
|
|
@@ -287,6 +287,8 @@
|
|
|
287
287
|
"text2command": "",
|
|
288
288
|
"assistantInstance": "",
|
|
289
289
|
"assistantMedia": true,
|
|
290
|
+
"speechToText": "",
|
|
291
|
+
"speechToTextEcho": true,
|
|
290
292
|
"answerTimeoutSec": 60,
|
|
291
293
|
"url": "",
|
|
292
294
|
"bind": "0.0.0.0",
|
|
@@ -937,6 +939,30 @@
|
|
|
937
939
|
"write": false
|
|
938
940
|
},
|
|
939
941
|
"native": {}
|
|
942
|
+
},
|
|
943
|
+
{
|
|
944
|
+
"_id": "communicate.requestVoiceText",
|
|
945
|
+
"type": "state",
|
|
946
|
+
"common": {
|
|
947
|
+
"name": {
|
|
948
|
+
"en": "Text recognised from the last voice message",
|
|
949
|
+
"de": "Erkannter Text der letzten Sprachnachricht",
|
|
950
|
+
"ru": "Распознанный текст последнего голосового сообщения",
|
|
951
|
+
"pt": "Texto reconhecido da última mensagem de voz",
|
|
952
|
+
"nl": "Herkende tekst van het laatste spraakbericht",
|
|
953
|
+
"fr": "Texte reconnu du dernier message vocal",
|
|
954
|
+
"it": "Testo riconosciuto dall'ultimo messaggio vocale",
|
|
955
|
+
"es": "Texto reconocido del último mensaje de voz",
|
|
956
|
+
"pl": "Rozpoznany tekst ostatniej wiadomości głosowej",
|
|
957
|
+
"uk": "Розпізнаний текст останнього голосового повідомлення",
|
|
958
|
+
"zh-cn": "最后一条语音消息识别出的文本"
|
|
959
|
+
},
|
|
960
|
+
"type": "string",
|
|
961
|
+
"role": "text",
|
|
962
|
+
"read": true,
|
|
963
|
+
"write": false
|
|
964
|
+
},
|
|
965
|
+
"native": {}
|
|
940
966
|
}
|
|
941
967
|
]
|
|
942
968
|
}
|
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.
|
|
4
|
+
"version": "6.4.0",
|
|
5
5
|
"author": "bluefox <dogafox@gmail.com>",
|
|
6
6
|
"contributors": [
|
|
7
7
|
"bluefox <dogafox@gmail.com>",
|