From 09947d13a8deb49e92893873858d6c1f1ecb9e6a Mon Sep 17 00:00:00 2001 From: Andrew55529 Date: Thu, 29 Jul 2021 19:31:32 +0300 Subject: [PATCH] Fix problem with telegram_bot (#53690) --- homeassistant/components/telegram_bot/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/telegram_bot/__init__.py b/homeassistant/components/telegram_bot/__init__.py index c3f07e5269d..02629e695fc 100644 --- a/homeassistant/components/telegram_bot/__init__.py +++ b/homeassistant/components/telegram_bot/__init__.py @@ -848,7 +848,7 @@ class BaseTelegramBotEntity: if ( msg_data["from"].get("id") not in self.allowed_chat_ids - and msg_data["chat"].get("id") not in self.allowed_chat_ids + and msg_data["message"]["chat"].get("id") not in self.allowed_chat_ids ): # Neither from id nor chat id was in allowed_chat_ids, # origin is not allowed.