As I understand, telegram API returns error type on error. I'd like to have access to it so that I distinguish between expected and not expected errors. For example, I'd like to ignore MESSAGE_NOT_MODIFIED and throw anything else. Right now I have to check if error description contains some keywords, which is less reliable than checking error type.
As I understand, telegram API returns error type on error. I'd like to have access to it so that I distinguish between expected and not expected errors. For example, I'd like to ignore
MESSAGE_NOT_MODIFIED
and throw anything else. Right now I have to check if error description contains some keywords, which is less reliable than checking error type.