forked from home-assistant/core
Fix problem with telegram_bot (#53690)
This commit is contained in:
@@ -848,7 +848,7 @@ class BaseTelegramBotEntity:
|
|||||||
|
|
||||||
if (
|
if (
|
||||||
msg_data["from"].get("id") not in self.allowed_chat_ids
|
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,
|
# Neither from id nor chat id was in allowed_chat_ids,
|
||||||
# origin is not allowed.
|
# origin is not allowed.
|
||||||
|
Reference in New Issue
Block a user