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: