Fix problem with telegram_bot (#53690)

pull/53854/head
Andrew55529 2021-07-29 19:31:32 +03:00 committed by GitHub
parent 219348d573
commit 09947d13a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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