Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
windka committed Jan 30, 2024
1 parent ef98b5b commit 5bb17f3
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions telegrambot/99-telegrambot.js
Original file line number Diff line number Diff line change
Expand Up @@ -2179,14 +2179,15 @@ module.exports = function (RED) {
node.processError(ex, msg, nodeSend, nodeDone);
})
.then(function (result) {
telegramBot.getFileLink(fileId)
.catch(function (ex) {
node.processError(ex, msg, nodeSend, nodeDone);
})
.then(function (weblink) {
msg.weblink = weblink;
node.processResult(result, msg, nodeSend, nodeDone);
});
telegramBot
.getFileLink(fileId)
.catch(function (ex) {
node.processError(ex, msg, nodeSend, nodeDone);
})
.then(function (weblink) {
msg.weblink = weblink;
node.processResult(result, msg, nodeSend, nodeDone);
});
});
} else {
if (msg.payload.type) {
Expand Down

0 comments on commit 5bb17f3

Please sign in to comment.