Skip to content

Commit

Permalink
Fix: Chat ID Message not sent
Browse files Browse the repository at this point in the history
  • Loading branch information
luke5sky committed Apr 7, 2020
1 parent afa7e09 commit 2d0c743
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,9 @@ def initialize(self):

def TelegramMessages(self, bot, update):
msg = update.message.text
self.chat_id = update.message.chat_id
if self.chat_whitelist.count(self.chat_id) > 0 :
chat_id_test = update.message.chat_id
self.chat_id = str(update.message.chat_id)
if self.chat_whitelist.count(chat_id_test) > 0 :
global speak_tele
speak_tele = 1
logger.info("Telegram-Message from User: " + msg)
Expand Down

0 comments on commit 2d0c743

Please sign in to comment.