Skip to content

Commit

Permalink
ChatID not recognized
Browse files Browse the repository at this point in the history
  • Loading branch information
luke5sky committed Apr 7, 2020
1 parent 7b01967 commit afa7e09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit afa7e09

Please sign in to comment.