mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-01-09 19:49:39 +01:00
11 lines
235 B
Python
11 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]
|