Fixed Telegram group chatid not supported

Fixed Telegram group chatid not supported (#9831)
This commit is contained in:
Theo Arends 2020-11-13 09:54:01 +01:00
parent fade0793c3
commit 9915c9e731
3 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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

View File

@ -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; }