mirror of https://github.com/coddrago/Heroku
Changed incomprehensible error messages from telegram to readable beautiful messages
parent
a0468375c1
commit
69ef348770
|
@ -68,6 +68,8 @@ def override_text(exception: Exception) -> typing.Optional[str]:
|
|||
"""Returns error-specific description if available, else `None`"""
|
||||
if isinstance(exception, NetworkError):
|
||||
return "✈️ <b>You have problems with internet connection on your server.</b>"
|
||||
if 'Telegram is having internal issues' in str(exception):
|
||||
return "✈️ <b>Telegram has problems with their datacenters.</b>"
|
||||
|
||||
return None
|
||||
|
||||
|
|
Loading…
Reference in New Issue