From 5fb48e68a05324b2acda4733a4f792d5136f61e2 Mon Sep 17 00:00:00 2001 From: Andrea Barbagallo Date: Sat, 16 Oct 2021 17:45:15 +0200 Subject: [PATCH] Added description of the ApiTelegramException as attribute of the class --- .gitignore | 1 + telebot/apihelper.py | 1 + 2 files changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index c9919ab..e2bc744 100644 --- a/.gitignore +++ b/.gitignore @@ -25,6 +25,7 @@ var/ .idea/ venv/ +.venv/ # PyInstaller # Usually these files are written by a python script from a template diff --git a/telebot/apihelper.py b/telebot/apihelper.py index 9588c4e..07e0528 100644 --- a/telebot/apihelper.py +++ b/telebot/apihelper.py @@ -1661,4 +1661,5 @@ class ApiTelegramException(ApiException): result) self.result_json = result_json self.error_code = result_json['error_code'] + self.description = result_json['description']