From 9915c9e7313b30d5393adca76f1756fcce8f16b2 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Fri, 13 Nov 2020 09:54:01 +0100 Subject: [PATCH] Fixed Telegram group chatid not supported Fixed Telegram group chatid not supported (#9831) --- CHANGELOG.md | 1 + RELEASENOTES.md | 1 + tasmota/xdrv_40_telegram.ino | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 436cf5e5a..04c2dd4ba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ All notable changes to this project will be documented in this file. ### Fixed - NTP fallback server functionality (#9739) +- Telegram group chatid not supported (#9831) ### Removed - Version compatibility check diff --git a/RELEASENOTES.md b/RELEASENOTES.md index cbabcd046..251b6396b 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -72,6 +72,7 @@ The attached binaries can also be downloaded from http://ota.tasmota.com/tasmota ### Fixed - NTP fallback server functionality (#9739) +- Telegram group chatid not supported (#9831) ### Removed - Version compatibility check diff --git a/tasmota/xdrv_40_telegram.ino b/tasmota/xdrv_40_telegram.ino index 2ab1eb775..e959268d2 100644 --- a/tasmota/xdrv_40_telegram.ino +++ b/tasmota/xdrv_40_telegram.ino @@ -66,7 +66,7 @@ typedef struct { // String from_last_name; // uint32_t from_id = 0; uint32_t update_id = 0; - uint32_t chat_id = 0; + int32_t chat_id = 0; } TelegramMessage; struct { @@ -248,7 +248,7 @@ void TelegramGetUpdates(uint32_t offset) { } } -bool TelegramSendMessage(uint32_t chat_id, String text) { +bool TelegramSendMessage(int32_t chat_id, String text) { AddLog_P(LOG_LEVEL_DEBUG_MORE, PSTR("TGM: sendMessage")); if (!TelegramInit()) { return false; }