iobroker.telegram-menu
Advanced tools
Comparing version 0.8.2 to 0.8.3
{ | ||
"common": { | ||
"name": "telegram-menu", | ||
"version": "0.8.2", | ||
"version": "0.8.3", | ||
"news": { | ||
"0.8.3": { | ||
"en": "fix, step smaller than 1 in submenu number and percent\ngloabl fixes in submenu", | ||
"de": "fix, schritt kleiner als 1 in untermenünummer und prozent\ngloabl fixes in submenu", | ||
"ru": "исправить, шаг меньше 1 в подменю номер и процент\ngloabl исправляет в подменю", | ||
"pt": "corrigir, passo menor que 1 no número submenu e por cento\ngloabl correções em submenu", | ||
"nl": "vertaling:\ngloabel in submenu", | ||
"fr": "fixer, faire plus petit que 1 dans le numéro de sous-menu et pour cent\ngloabl corrige dans le sous-menu", | ||
"it": "correzione, passo più piccolo di 1 in numero submenu e per cento\nguaabl fissa in submenu", | ||
"es": "fijado, paso más pequeño que 1 en submenú número y porcentaje\ngloabl fijados en submenu", | ||
"pl": "metoda ta jest mniejsza niż 1 w liczbie submenu i 1%\nustalenie w podmenu", | ||
"uk": "фіксація, крок менше 1 в субмену кількість і відсотків\nглобл закріплює в підменю", | ||
"zh-cn": "fix 小于1级和4%\n分项abl f" | ||
}, | ||
"0.8.2": { | ||
@@ -83,15 +96,2 @@ "en": "fix {status:...}", | ||
"zh-cn": "#53 特色:寄电器\n第52条 遗漏,复印数据\n第51号活动是创建一个新的男子,用户没有证明。" | ||
}, | ||
"0.6.10": { | ||
"en": "bug fix", | ||
"de": "fehlerbehebung", | ||
"ru": "исправление ошибки", | ||
"pt": "correção de bugs", | ||
"nl": "insecten", | ||
"fr": "bug fix", | ||
"it": "correzione bug", | ||
"es": "bug", | ||
"pl": "błąd", | ||
"uk": "виправлення помилок", | ||
"zh-cn": "bug fix" | ||
} | ||
@@ -98,0 +98,0 @@ }, |
@@ -10,2 +10,6 @@ const sendToTelegram = require("./telegram").sendToTelegram; | ||
* @param {boolean} SubmenuValuePriority If true the value from the submenu will be used else the value from the switch | ||
* @param {string} telegramInstance Instance of telegram | ||
* @param {boolean} resize_keyboard | ||
* @param {boolean} one_time_keyboard | ||
* @param {[]} userListWithChatID | ||
* @returns Returns an array with the ids to set | ||
@@ -12,0 +16,0 @@ */ |
@@ -82,6 +82,6 @@ const setstate = require("./setstate").setstate; | ||
true, | ||
undefined, | ||
undefined, | ||
undefined, | ||
undefined, | ||
instanceTelegram, | ||
resize_keyboard, | ||
one_time_keyboard, | ||
userListWithChatID, | ||
); | ||
@@ -105,6 +105,6 @@ if (Array.isArray(result)) returnIDToListenTo = result; | ||
true, | ||
undefined, | ||
undefined, | ||
undefined, | ||
undefined, | ||
instanceTelegram, | ||
resize_keyboard, | ||
one_time_keyboard, | ||
userListWithChatID, | ||
); | ||
@@ -117,3 +117,3 @@ if (Array.isArray(result)) returnIDToListenTo = result; | ||
else if (!calledValue.includes("submenu") && callbackData.includes("percent")) { | ||
step = parseInt(callbackData.replace("percent", "")); | ||
step = parseFloat(callbackData.replace("percent", "")); | ||
let rowEntrys = 0; | ||
@@ -154,6 +154,6 @@ let menu = []; | ||
true, | ||
undefined, | ||
undefined, | ||
undefined, | ||
undefined, | ||
instanceTelegram, | ||
resize_keyboard, | ||
one_time_keyboard, | ||
userListWithChatID, | ||
); | ||
@@ -184,3 +184,7 @@ if (Array.isArray(result)) returnIDToListenTo = result; | ||
let index = -1; | ||
for (let i = start; i >= end; i -= parseInt(splittedData[2])) { | ||
let maxEntrysPerRow = 8; | ||
if (parseFloat(splittedData[2]) < 1) maxEntrysPerRow = 6; | ||
for (let i = start; i >= end; i -= parseFloat(splittedData[2])) { | ||
// Zahlen umdrehen | ||
@@ -197,3 +201,3 @@ if (parseInt(splittedData[0]) < parseInt(splittedData[1])) { | ||
rowEntrys++; | ||
if (rowEntrys == 8) { | ||
if (rowEntrys == maxEntrysPerRow) { | ||
// @ts-ignore | ||
@@ -223,6 +227,6 @@ keyboard.inline_keyboard.push(menu); | ||
true, | ||
undefined, | ||
undefined, | ||
undefined, | ||
undefined, | ||
instanceTelegram, | ||
resize_keyboard, | ||
one_time_keyboard, | ||
userListWithChatID, | ||
); | ||
@@ -229,0 +233,0 @@ if (Array.isArray(result)) returnIDToListenTo = result; |
@@ -25,2 +25,3 @@ /** | ||
_this.log.debug("Instance : " + JSON.stringify(instance)); | ||
_this.log.debug("userListWithChatID : " + JSON.stringify(userListWithChatID)); | ||
let chatId = ""; | ||
@@ -27,0 +28,0 @@ userListWithChatID.forEach((element) => { |
{ | ||
"name": "iobroker.telegram-menu", | ||
"version": "0.8.2", | ||
"version": "0.8.3", | ||
"description": "Easily create Telegram Menus", | ||
@@ -5,0 +5,0 @@ "author": { |
@@ -34,4 +34,9 @@ ![Logo](admin/telegram-menu.png) | ||
Placeholder for the next version (at the beginning of the line): | ||
### **WORK IN PROGRESS** | ||
--> | ||
### 0.8.3 (2023-10-23) | ||
--> | ||
- fix, step smaller than 1 in submenu number and percent | ||
- gloabl fixes in submenu | ||
### 0.8.2 (2023-10-22) | ||
@@ -38,0 +43,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
347176
3813
224