From 658f37f93d1a0c31c447adb3022cfd6cee4a1876 Mon Sep 17 00:00:00 2001 From: temomik Date: Fri, 1 Dec 2023 20:16:03 +0000 Subject: Added ability to handle error codes from all Api requests --- include/tgbot/Api.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/tgbot/Api.h') diff --git a/include/tgbot/Api.h b/include/tgbot/Api.h index 7db68e7..6bd24e4 100644 --- a/include/tgbot/Api.h +++ b/include/tgbot/Api.h @@ -1989,7 +1989,7 @@ public: const HttpClient& _httpClient; -private: +protected: boost::property_tree::ptree sendRequest(const std::string& method, const std::vector& args = std::vector()) const; const std::string _token; -- cgit v1.2.3