From a5b7e836c414c1514a1668244dd2e1afc9a62ebe Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 26 Mar 2017 13:35:42 +0200 Subject: [PATCH] fix error logs --- telegram.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telegram.py b/telegram.py index 60b7b03b..e2ac9cda 100644 --- a/telegram.py +++ b/telegram.py @@ -235,7 +235,7 @@ class Chat: try: await bot.api_request("sendMessage", text=text, chat_id=self.chat_id, **params) except TelegramAPIError as e: - print(f"[Telegram] sendMessage failed: {e.text}") + print(f"[Telegram] sendMessage failed: {e.args[0]}") class User: