From 13ae259da9b0e423c8c63753a5457758a134b729 Mon Sep 17 00:00:00 2001 From: windka Date: Fri, 21 Jun 2024 21:08:45 +0200 Subject: [PATCH] fixed #380 --- CHANGELOG.md | 3 +++ README.md | 6 ++++++ package.json | 2 +- telegrambot/99-telegrambot.html | 7 ++++++- telegrambot/99-telegrambot.js | 17 ++++++----------- 5 files changed, 22 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c4fe3d6..5e695ce 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.11] - 2024-06-14 +### added option for enabling test environment - [#380](https://github.com/windkh/node-red-contrib-telegrambot/issues/380) + # [15.1.9] - 2024-01-30 ### Added full weblink in response message of getfile. - see also - [#357](https://github.com/windkh/node-red-contrib-telegrambot/pull/357) diff --git a/README.md b/README.md index 3852bb0..6f577c4 100644 --- a/README.md +++ b/README.md @@ -246,6 +246,12 @@ This is the server url of the telegram server (https://api.telegram.org). If you Typically this field is left blank. +### Configuration property *Test Environment* +This enables the test environment see: (https://core.telegram.org/bots/features#testing-your-bot). + +Typically this checkbox is unchecked. + + ### Configuration property *Update Mode* The update mode can be chosen from *Polling* or *Webhook*. diff --git a/package.json b/package.json index 9f79935..68f4000 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-red-contrib-telegrambot", - "version": "15.1.10", + "version": "15.1.11", "description": "Telegram bot nodes for Node-RED", "dependencies": { "bluebird": "^3.7.2", diff --git a/telegrambot/99-telegrambot.html b/telegrambot/99-telegrambot.html index cbd1550..c996c51 100644 --- a/telegrambot/99-telegrambot.html +++ b/telegrambot/99-telegrambot.html @@ -10,6 +10,7 @@ usernames: { value: "", required: false }, chatids: { value: "", required: false }, baseapiurl: { value: "", required: false }, + testenvironment: { value: false, required: false }, updatemode: { value: "polling", required: true }, @@ -117,10 +118,14 @@
- +
+ + + +