Skip to content

Commit

Permalink
fixed #381
Browse files Browse the repository at this point in the history
  • Loading branch information
windka committed Jun 22, 2024
1 parent a943505 commit f5cf688
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# Changelog
All notable changes to this project will be documented in this file.

# [16.0.0] - 2024-06-14
# [16.0.0] - 2024-06-22
### fixed getFile typo - [#381](https://github.com/windkh/node-red-contrib-telegrambot/issues/381)

# [16.0.0] - 2024-06-21
### updated to 0.66.0, removed dependancies to deprectated request, updated sock agent

# [15.1.11] - 2024-06-14
# [15.1.11] - 2024-06-20
### added option for enabling test environment - [#380](https://github.com/windkh/node-red-contrib-telegrambot/issues/380)

# [15.1.9] - 2024-01-30
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,7 @@ The `msg.payload.type` needs to be set to one of the following values:
| **hideGeneralForumTopic** | - | - | https://core.telegram.org/bots/api#hidegeneralforumtopic |
| **unhideGeneralForumTopic** | - | - | https://core.telegram.org/bots/api#unhidegeneralforumtopic |
| **stopPoll** | message_id (integer) | optional arguments | https://core.telegram.org/bots/api#stoppoll |
| **setChatAdministratorCustomTitle** | message_id (integer) | optional arguments | https://core.telegram.org/bots/api#setchatadministratorcustomtitle |


The content format of the command arguments (required and optional) depends on the api command.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-red-contrib-telegrambot",
"version": "16.0.0",
"version": "16.0.1",
"description": "Telegram bot nodes for Node-RED",
"dependencies": {
"bluebird": "^3.7.2",
Expand Down
5 changes: 3 additions & 2 deletions telegrambot/99-telegrambot.js
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ module.exports = function (RED) {
stopPolling = true;
} else {
// unknown error occured... we simply ignore it.
hint = error.message + ' --> Trying again.';
hint = 'Polling error --> Trying again.';
}

if (stopPolling) {
Expand Down Expand Up @@ -2161,7 +2161,7 @@ module.exports = function (RED) {
node.processResult(result, msg, nodeSend, nodeDone);
});
} else if (msg.payload.getfile) {
let fileId = msg.payload.getFile.fileId;
let fileId = msg.payload.getfile.fileId;

telegramBot
.getFile(fileId)
Expand Down Expand Up @@ -2624,6 +2624,7 @@ module.exports = function (RED) {
case 'getChatMember':
case 'approveChatJoinRequest':
case 'declineChatJoinRequest':
case 'setChatAdministratorCustomTitle':
case 'stopPoll':
// The userId must be passed in msg.payload.content: note that this is is a number not the username.
// Right now there is no way for resolving the user_id by username in the official API.
Expand Down

0 comments on commit f5cf688

Please sign in to comment.