Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

iobroker.telegram-menu

Package Overview
Dependencies
Maintainers
2
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iobroker.telegram-menu - npm Package Compare versions

Comparing version 0.4.1 to 0.4.2

28

io-package.json
{
"common": {
"name": "telegram-menu",
"version": "0.4.1",
"version": "0.4.2",
"news": {
"0.4.2": {
"en": "menu switch ersetzt menu yes-no, on-off, it is possible to customize text and value with this menu",
"de": "menüschalter ersetzen ja-nein, on-off, es ist möglich, text und wert mit diesem menü anpassen",
"ru": "меню переключатель ersetzt меню yes-no, on-off, можно настроить текст и значение с этим меню",
"pt": "menu switch ersetzt menu sim-no, on-off, é possível personalizar texto e valor com este menu",
"nl": "menu wisselen van ersetzt menu ja-op-off, het is mogelijk om tekst en waarde te gebruiken met deze menukaart",
"fr": "menu switch ersetzt menu oui-non, off-off, il est possible de personnaliser le texte et la valeur avec ce menu",
"it": "menu switch ersetzt menu yes-no, on-off, è possibile personalizzare testo e valore con questo menu",
"es": "menu switch ersetzt menu yes-no, on-off, es posible personalizar texto y valor con este menú",
"pl": "menu przełącza ersetzt menu yes-no, on-off, jest możliwe do dostosowania tekstu i wartości z tymi menu",
"uk": "меню переключення ersetzt меню так-но, on-off, можна налаштувати текст та значення з цим меню",
"zh-cn": "男性转化的男性是双赢的,有可能使文本和价值与这一男人定制。"
},
"0.4.1": {

@@ -83,15 +96,2 @@ "en": "Return text for submenus adjusted",

"zh-cn": "固定\n评 注\n确认已确定价值\n第二个用户 男子固定"
},
"0.0.8": {
"en": "Send Grafana Diagrams",
"de": "Grafana-Diagramme senden",
"ru": "Отправить Grafana Диаграммы",
"pt": "Enviar Diagramas de Grafana",
"nl": "Stuur Grafana Diagram",
"fr": "Envoyer Diagrammes de Grafana",
"it": "Invia diagrammi Grafana",
"es": "Enviar diagramas de Grafana",
"pl": "Senna Diagram",
"uk": "Відправити граматику Grafana",
"zh-cn": "Send Grafana Diagram"
}

@@ -98,0 +98,0 @@ },

@@ -5,2 +5,3 @@ const setstate = require("./setstate").setstate;

let returnIDToListenTo;
let splittedData = [];
/**

@@ -19,5 +20,37 @@ *

_this.log.debug("callback: " + JSON.stringify(callbackData));
_this.log.debug("callback: " + JSON.stringify(callbackData == "first"));
_this.log.debug("devicetoswitch: " + JSON.stringify(device2Switch));
_this.log.debug("text: " + JSON.stringify(text));
if (callbackData.includes("switch")) {
splittedData = callbackData.split("-");
device2Switch = splittetText[2];
const keyboard = {
inline_keyboard: [
[
{
text: splittedData[1].split(".")[0],
callback_data: "menu:first",
},
{
text: splittedData[2].split(".")[0],
callback_data: "menu:second",
},
],
],
};
return ["Wähle eine Option", JSON.stringify(keyboard), device2Switch];
} else if (callbackData.includes("first")) {
let val;
splittedData[1].split(".")[1] == "true" ? (val = true) : (val = splittedData[1].split(".")[1]);
_this.log.debug("val " + JSON.stringify(val));
returnIDToListenTo = setstate(_this, groupData[device2Switch], userToSend, val, true);
return [null, null, null, returnIDToListenTo];
} else if (callbackData.includes("second")) {
let val;
splittedData[2].split(".")[1] == "true" ? (val = true) : (val = splittedData[2].split(".")[1]);
returnIDToListenTo = setstate(_this, groupData[device2Switch], userToSend, val, true);
return [null, null, null, returnIDToListenTo];
}
if (callbackData === "yes-no") {

@@ -24,0 +57,0 @@ const keyboard = {

{
"name": "iobroker.telegram-menu",
"version": "0.4.1",
"version": "0.4.2",
"description": "Easily create Telegram Menus",

@@ -5,0 +5,0 @@ "author": {

@@ -36,2 +36,6 @@ ![Logo](admin/telegram-menu.png)

-->
### 0.4.2 (2023-07-30)
- menu switch ersetzt menu yes-no, on-off, it is possible to customize text and value with this menu
### 0.4.1 (2023-07-30)

@@ -38,0 +42,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc