Socket
Socket
Sign inDemoInstall

node-red-contrib-telegrambot-home

Package Overview
Dependencies
136
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.5.2 to 0.6.0

1

nodes/payload/payload.js

@@ -109,2 +109,3 @@ var utils = require('../../lib/utils.js');

case "deleteMessage": args = buildArgs(chatId, payload, "message_id"); break;
case "answerCallbackQuery": args = buildArgs(chatId, payload, "callback_query_id"); break;

@@ -111,0 +112,0 @@ case "editMessageReplyMarkup": args = buildArgs(chatId, payload, "reply_markup"); break;

6

nodes/switch/switch.js

@@ -17,2 +17,3 @@ var utils = require('../../lib/utils.js');

this.autoAnswerCallback = config.autoAnswerCallback;
this.verticalAnswers = config.verticalAnswers;

@@ -143,7 +144,8 @@ // Initialize bot

var answerOpts = answers.map(function(answer, idx){
return { text: answer, callback_data: idx };
var answer = { text: answer, callback_data: idx };
return node.verticalAnswers ? [answer] : answer;
});
var options = {
reply_markup: {
inline_keyboard: [answerOpts]
inline_keyboard: node.verticalAnswers ? answerOpts : [answerOpts]
}

@@ -150,0 +152,0 @@ };

{
"name": "node-red-contrib-telegrambot-home",
"version": "0.5.2",
"version": "0.6.0",
"description": "Useful nodes for connecting your home to Telegram",

@@ -35,4 +35,4 @@ "node-red": {

"dependencies": {
"node-telegram-bot-api": "^0.30.0"
"node-telegram-bot-api": "^0.52.0"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc