1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

fix error logs

This commit is contained in:
Steffo 2017-03-26 13:35:42 +02:00
parent e7694ffc57
commit a5b7e836c4

View file

@ -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: