mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-22 07:06:26 +01:00
10 lines
235 B
Python
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]
|