iobroker.telegram 6.2.0 → 6.3.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
@@ -14,6 +14,8 @@ export interface TelegramConfig {
14
14
  saveFiles: boolean;
15
15
  saveFilesTo: string;
16
16
  saveFilesQuality: string;
17
+ /** Received files older than this many days are deleted; 0 = keep them */
18
+ deleteFilesAfterDays?: number;
17
19
  allowStates: boolean;
18
20
  proxy: boolean;
19
21
  /** `http` (default) or `socks5`; missing in configs created before the option existed */
package/io-package.json CHANGED
@@ -1,8 +1,34 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "telegram",
4
- "version": "6.2.0",
4
+ "version": "6.3.0",
5
5
  "news": {
6
+ "6.3.0": {
7
+ "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
+ "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)",
9
+ "ru": "Добавлена функция «Удалять полученные файлы через (дней)»: сохраненные голосовые сообщения, фотографии, видео, аудиофайлы и документы старше этого срока удаляются в файловой системе или в файловом хранилище каждый час. 0 (по умолчанию) сохраняет их в прежнем виде",
10
+ "pt": "Adicionado “Excluir arquivos recebidos após (dias)”: mensagens de voz, fotos, vídeos, arquivos de áudio e documentos antigos são verificados a cada hora. 0 (padrão) os mantém como antes",
11
+ "nl": "„Ontvangen bestanden verwijderen na (dagen)” toegevoegd: opgeslagen spraakberichten, foto's, video's, audiobestanden en documenten die ouder zijn, worden verwijderd in het bestandssysteem of in de bestandsopslag, elk uur gecontroleerd. 0 (standaard) bewaart ze zoals voorheen",
12
+ "fr": "Ajout de « Supprimer les fichiers reçus après (des jours) » : messages vocaux, photos, vidéos, fichiers audio et documents plus anciens que ceux supprimés, vérifiés toutes les heures. 0 (par défaut) les conserve comme avant",
13
+ "it": "Aggiunto «Elimina i file ricevuti dopo (giorni)»: messaggi vocali, foto, video, file audio e documenti più vecchi, salvati nel file system o nell'archivio, controllati ogni ora. 0 (predefinito) li mantiene come prima",
14
+ "es": "Se ha añadido «Eliminar los archivos recibidos después de (días)»: guarda los mensajes de voz, fotos, vídeos, archivos de audio y documentos más antiguos, en el sistema de archivos o en el almacenamiento de archivos, comprobados cada hora. 0 (por defecto) los mantiene como antes",
15
+ "pl": "Dodano „Usuń odebrane pliki po (dniach)”: zapisane wiadomości głosowe, zdjęcia, filmy, pliki audio i dokumenty starsze niż te są usuwane, w systemie plików lub w pamięci plików, sprawdzane co godzinę. 0 (domyślnie) zachowuje je jak poprzednio",
16
+ "uk": "Додано «Видалити отримані файли після (днів)»: збережені голосові повідомлення, фотографії, відео, аудіофайли та документи старші, ніж ті, видаляються, у файловій системі або в сховищі файлів, перевіряються щогодини. 0 (за замовчуванням) зберігає їх як раніше",
17
+ "zh-cn": "添加了 “在(天)之后删除收到的文件”:在文件系统或文件存储器中保存的语音消息、照片、视频、音频文件和已删除的文档,每小时检查一次。0(默认)使它们保持原样"
18
+ },
19
+ "6.2.1": {
20
+ "en": "Videos for the `assistant` instance are stored in the data directory of the instance (`iobroker-data/telegram_0/assistant`, the newest 20) and go along as `iobdisk://` URL, which the assistant reads from any host (js-controller 8.0+). With an older js-controller they still go to the file storage",
21
+ "de": "Videos für die `Assistant`-Instanz werden im Datenverzeichnis der Instanz gespeichert (`iobroker-data/telegram_0/assistant`, die neuesten 20) und haben die URL `iobdisk: //`, die der Assistent von jedem Host liest (js-controller 8.0+). Mit einem älteren JS-Controller gehen sie immer noch",
22
+ "ru": "Видеозаписи экземпляра `assistant` хранятся в каталоге данных экземпляра (`iobroker-data/telegram_0/assistant`, новые 20) и сопровождаются URL-адресом `iobdisk: //`, который ассистент считывает с любого хоста (js-controller 8.0+). Со старым js-контроллером они все равно отправляются в файловое хранилище",
23
+ "pt": "Os vídeos da instância `assistant` são armazenados no diretório de dados da instância (`iobroker-data/telegram_0/assistant`, os 20 mais novos) e como URL `iobdisk: //`, que o assistente lê de qualquer host (js-controller 8.0+). Com um controlador js antigo, eles ainda armazenam arquivos",
24
+ "nl": "Video's voor de instantie `assistant` worden opgeslagen in de gegevensmap van de instantie (`iobroker-data/telegram_0/assistant`, de nieuwste 20) en worden gebruikt als `iobdisk: //` URL, die de assistent van elke host leest (js-controller 8.0+). Met een oudere js-controller gaan ze nog steeds naar de bestandsopslag",
25
+ "fr": "Les vidéos de l'instance « assistant » sont stockées dans le répertoire de données de l'instance (« iobroker-data/telegram_0/assistant », le 20 plus récent) et sont accompagnées de l'URL « iobdisk ://», que l'assistant lit depuis n'importe quel hôte (js-controller 8.0+). Avec un ancien JS-Controller, ils accèdent toujours à la mémoire",
26
+ "it": "I video per l'istanza Assistant sono memorizzati nella cartella dati dell'istanza (iobroker-data/telegram_0/assistant, la più recente 20) e sono indicati come URL iobdisk://, che l'assistente legge da qualsiasi host (js-controller 8.0+). Con un vecchio js-controller vanno ancora all'archivio",
27
+ "es": "Los vídeos de la instancia `assistant` se almacenan en el directorio de datos de la instancia (`iobroker-data/telegram_0/assistant`, los 20 más recientes) y van como URL `iobdisk: //`, que el asistente lee desde cualquier host (js-controller 8.0+). Con un controlador js antiguo, aún van al almacén de archivos",
28
+ "pl": "Filmy dla instancji `assistant` są przechowywane w katalogu danych instancji (`iobroker-data/telegram_0/assistant`, najnowsze 20) i pojawiają się jako `iobdisk: //` URL, który asystent odczytuje z dowolnego hosta (js-controller 8.0+). Ze starszym kontrolerem js nadal przechodzą do przechowywania plików",
29
+ "uk": "Відео для екземпляра `assistant` зберігаються в каталозі даних екземпляра (`iobroker-data/telegram_0/assistant`, найновіша 20) і переходять як `iobdisk: //` URL, яку помічник читає з будь-якого хоста (js-controller 8.0+). З більш старим js-контролером вони все ще переходять до сховища файлів",
30
+ "zh-cn": "“助手” 实例的视频存储在实例的数据目录中(“iobroker-data/telegram_0/assistant”,最新的 20 个),作为 `iobdisk: //` 网址,助手从任何主机(js-controller 8.0+)读取该网址。使用较旧的 js-controller,它们仍然会进入文件存储"
31
+ },
6
32
  "6.2.0": {
7
33
  "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
34
  "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",
@@ -67,32 +93,6 @@
67
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\"",
68
94
  "uk": "Виправлено: налаштований текст2command/assistant екземпляр може тепер також зберігатися в довгостроковій формі (`system.adapter.text2command.0`) - живий чек більше не виходить з \"інтенсивом не працює\"",
69
95
  "zh-cn": "固定 : 已配置的文本2 命令/ 辅助实例现在也可能以长窗体( 'system. adapter. text2 command. 0') 存储 - 活的检查不再以“ 无效运行” 失败 "
70
- },
71
- "5.0.2": {
72
- "en": "Adapter requires node.js >= 22 now\nAdapter requires admin >= 7.7.22 now\nadmin 8.0.0 and js-controller 6.0.11 (or later) are required\nUpdated dependencies",
73
- "de": "Der Adapter benötigt jetzt Node.js >= 22.\nDer Adapter benötigt jetzt Administratorrechte ab Version 7.7.22.\nadmin 8.0.0 und js-controller 6.0.11 (oder höher) werden benötigt.\nAktualisierte Abhängigkeiten",
74
- "ru": "Для работы адаптера требуется Node.js версии >= 22.\nДля работы адаптера требуется версия admin >= 7.7.22.\nДля работы требуются admin 8.0.0 и js-controller 6.0.11 (или более поздняя версия).\nОбновлены зависимости",
75
- "pt": "O adaptador agora requer Node.js >= 22.\nO adaptador agora requer o administrador na versão 7.7.22 ou superior.\nÉ necessário ter o admin 8.0.0 e o js-controller 6.0.11 (ou posterior) instalados.\nDependências atualizadas",
76
- "nl": "De adapter vereist nu Node.js versie 22 of hoger.\nAdapter vereist nu beheerdersversie >= 7.7.22.\nAdmin 8.0.0 en js-controller 6.0.11 (of later) zijn vereist.\nBijgewerkte afhankelijkheden",
77
- "fr": "L'adaptateur nécessite désormais Node.js >= 22.\nL'adaptateur nécessite désormais une version d'administrateur supérieure ou égale à 7.7.22.\nadmin 8.0.0 et js-controller 6.0.11 (ou version ultérieure) sont requis\nDépendances mises à jour",
78
- "it": "L'adattatore ora richiede Node.js >= 22\nL'adattatore richiede ora l'amministratore >= 7.7.22\nSono richiesti admin 8.0.0 e js-controller 6.0.11 (o versioni successive).\nDipendenze aggiornate",
79
- "es": "El adaptador ahora requiere node.js >= 22.\nEl adaptador ahora requiere administrador >= 7.7.22\nSe requieren admin 8.0.0 y js-controller 6.0.11 (o posterior).\nDependencias actualizadas",
80
- "pl": "Adapter wymaga teraz node.js >= 22\nAdapter wymaga teraz administratora >= 7.7.22\nWymagany jest admin 8.0.0 i js-controller 6.0.11 (lub nowszy)\nZaktualizowane zależności",
81
- "uk": "Адаптер тепер вимагає node.js >= 22\nАдаптер тепер вимагає адміністратора >= 7.7.22\nПотрібні admin 8.0.0 та js-controller 6.0.11 (або пізнішої версії)\nОновлені залежності",
82
- "zh-cn": "适配器现在需要 node.js 版本 >= 22。\n适配器现在需要管理员版本 >= 7.7.22。\n需要 admin 8.0.0 和 js-controller 6.0.11(或更高版本)。\n更新依赖项"
83
- },
84
- "4.1.0": {
85
- "en": "Admin component was migrated to TypeScript",
86
- "de": "Admin-Komponente wurde zu TypeScript migriert",
87
- "ru": "Компонент администратора был перенесен в TypeScript",
88
- "pt": "O componente de administrador foi migrado para TypeScript",
89
- "nl": "Admin-component is gemigreerd naar TypeScript",
90
- "fr": "La composante Admin a été migrée vers TypeScript",
91
- "it": "Componente Admin è stato migrato a TypeScript",
92
- "es": "El componente Admin fue migrado a TipoScript",
93
- "pl": "Składnik admin został przeniesiony do TypeScript",
94
- "uk": "Компонент адміністратора мігрувався на TypeScript",
95
- "zh-cn": "管理员组件已迁移到类型脚本"
96
96
  }
97
97
  },
98
98
  "messages": [
@@ -270,6 +270,7 @@
270
270
  "saveFiles": false,
271
271
  "saveFilesTo": "filesystem",
272
272
  "saveFilesQuality": "",
273
+ "deleteFilesAfterDays": 0,
273
274
  "allowStates": true,
274
275
  "proxy": false,
275
276
  "proxyType": "http",
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.2.0",
4
+ "version": "6.3.0",
5
5
  "author": "bluefox <dogafox@gmail.com>",
6
6
  "contributors": [
7
7
  "bluefox <dogafox@gmail.com>",