Skip to content

Commit

Permalink
Fix problem with telegram_bot (#53690)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew55529 authored and balloob committed Jul 29, 2021
1 parent 7f314e1 commit 6ced015
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/telegram_bot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@ def _get_message_data(self, msg_data):

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.
Expand Down

0 comments on commit 6ced015

Please sign in to comment.