python-telegram-bot/telegram/error.py
2015-07-08 16:58:18 -03:00

10 lines
235 B
Python

#!/usr/bin/env python
class TelegramError(Exception):
"""Base class for Telegram errors."""
@property
def message(self):
'''Returns the first argument used to construct this error.'''
return self.args[0]