From 3a29d39d0702519f1eae04b55933aca43d165b1e Mon Sep 17 00:00:00 2001 From: Andreu Vallbona Plazas Date: Sat, 20 Apr 2019 12:30:04 +0200 Subject: [PATCH] Simplified return statement of the send_message method Simplified return statement of the send_message method --- telegram_bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telegram_bot.py b/telegram_bot.py index 0ef382c..51d6790 100644 --- a/telegram_bot.py +++ b/telegram_bot.py @@ -65,7 +65,7 @@ def send_message(self): res = requests.get(TELEGRAM_SEND_MESSAGE_URL.format(self.chat_id, self.outgoing_message_text)) - return True if res.status_code == 200 else False + return res.status_code == 200 @staticmethod