From afa7e09e1b5aba9d280d9c661d2be99e634de4be Mon Sep 17 00:00:00 2001 From: luke Date: Tue, 7 Apr 2020 09:46:38 +0200 Subject: [PATCH] ChatID not recognized --- __init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/__init__.py b/__init__.py index 867b16c..e001897 100755 --- a/__init__.py +++ b/__init__.py @@ -107,8 +107,8 @@ def initialize(self): def TelegramMessages(self, bot, update): msg = update.message.text - self.chat_id = str(update.message.chat_id) - if self.chat_id in self.chat_whitelist: + self.chat_id = update.message.chat_id + if self.chat_whitelist.count(self.chat_id) > 0 : global speak_tele speak_tele = 1 logger.info("Telegram-Message from User: " + msg)