Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
windka committed Jul 17, 2022
1 parent 37e7472 commit 9a885fc
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions telegrambot/99-telegrambot.js
Original file line number Diff line number Diff line change
Expand Up @@ -2196,7 +2196,7 @@ module.exports = function (RED) {
});
//}
break;

case 'sendChatAction':
case 'action':
if (this.hasContent(msg)) {
Expand Down Expand Up @@ -2333,11 +2333,7 @@ module.exports = function (RED) {
//if (this.hasContent(msg)) {
// this type requires ok to be set: see https://core.telegram.org/bots/api#answershippingquery
node.telegramBot
.answerShippingQuery(
msg.payload.shippingQueryId,
msg.payload.ok,
msg.payload.options || {}
)
.answerShippingQuery(msg.payload.shippingQueryId, msg.payload.ok, msg.payload.options || {})
.catch(function (ex) {
node.processError(ex, msg, nodeSend, nodeDone);
})
Expand All @@ -2352,11 +2348,7 @@ module.exports = function (RED) {
//if (this.hasContent(msg)) {
// this type requires ok to be set: see https://core.telegram.org/bots/api#answerprecheckoutquery
node.telegramBot
.answerPreCheckoutQuery(
msg.payload.preCheckoutQueryId,
msg.payload.ok,
msg.payload.options || {}
)
.answerPreCheckoutQuery(msg.payload.preCheckoutQueryId, msg.payload.ok, msg.payload.options || {})
.catch(function (ex) {
node.processError(ex, msg, nodeSend, nodeDone);
})
Expand Down

0 comments on commit 9a885fc

Please sign in to comment.