You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you send a message with rich formatting, but a parsing error in it, Telegram returns just a cryptic message. Fortunately, there is where the error occured, so botogram should display it in a better way.
The text was updated successfully, but these errors were encountered:
For the implementation, I would like to mimic the SyntaxError behavior. After some research, I found you can do that with:
classMyError(Exception):
def__init__(self):
# Standard exception attributesself.msg='abc'# Attributes which mimics the SyntaxError behaviorself.filename='<message>'self.lineno=1self.offset=3self.text='hey'self.print_file_and_line=None# The trick to activate everything
If you send a message with rich formatting, but a parsing error in it, Telegram returns just a cryptic message. Fortunately, there is where the error occured, so botogram should display it in a better way.
The text was updated successfully, but these errors were encountered: