From dc85c7ff51c0ea4ba05870ee9a58b71d01832c9d Mon Sep 17 00:00:00 2001 From: windka Date: Tue, 29 Aug 2023 21:23:30 +0200 Subject: [PATCH] fixed #331 --- CHANGELOG.md | 3 +++ README.md | 1 + package.json | 2 +- telegrambot/99-telegrambot.js | 1 + 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 884bf0b..713c8c8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ # Changelog All notable changes to this project will be documented in this file. +# [15.1.6] - 2023-08-29 +### stopPoll added - [#331](https://github.com/windkh/node-red-contrib-telegrambot/issues/331) + # [15.1.5] - 2023-08-29 ### fixed dark theme - [#332](https://github.com/windkh/node-red-contrib-telegrambot/issues/332) diff --git a/README.md b/README.md index fbd1639..646177f 100644 --- a/README.md +++ b/README.md @@ -418,6 +418,7 @@ The `msg.payload.type` needs to be set to one of the following values: | **reopenGeneralForumTopic** | { chat_id (integer/string) } | - | https://core.telegram.org/bots/api#reopengeneralforumtopic | | **hideGeneralForumTopic** | { chat_id (integer/string) } | - | https://core.telegram.org/bots/api#hidegeneralforumtopic | | **unhideGeneralForumTopic** | { chat_id (integer/string) } | - | https://core.telegram.org/bots/api#unhidegeneralforumtopic | +| **stopPoll** | { chat_id (integer/string), message_id (integer) } | optional arguments | https://core.telegram.org/bots/api#stoppoll | The content format of the command arguments (required and optional) depends on the api command. diff --git a/package.json b/package.json index 39c38cf..f6224cc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-red-contrib-telegrambot", - "version": "15.1.5", + "version": "15.1.6", "description": "Telegram bot nodes for Node-RED", "dependencies": { "bluebird": "^3.7.2", diff --git a/telegrambot/99-telegrambot.js b/telegrambot/99-telegrambot.js index 0afa17d..cc5dd8d 100644 --- a/telegrambot/99-telegrambot.js +++ b/telegrambot/99-telegrambot.js @@ -2634,6 +2634,7 @@ module.exports = function (RED) { case 'getChatMember': case 'approveChatJoinRequest': case 'declineChatJoinRequest': + 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. if (this.hasContent(msg)) {