From a8defacf2ba9bc3029b16af48a539553f873866b Mon Sep 17 00:00:00 2001 From: llnulldisk <48621230+llnulldisk@users.noreply.github.com> Date: Sun, 29 Jan 2023 14:54:20 +0100 Subject: Fix timeout issues (#251) --- include/tgbot/Api.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/tgbot/Api.h') diff --git a/include/tgbot/Api.h b/include/tgbot/Api.h index c3ae922..b34a10d 100644 --- a/include/tgbot/Api.h +++ b/include/tgbot/Api.h @@ -1982,12 +1982,13 @@ public: * @return Returns True if bot is blocked by user */ bool blockedByUser(std::int64_t chatId) const; + + const HttpClient& _httpClient; private: boost::property_tree::ptree sendRequest(const std::string& method, const std::vector& args = std::vector()) const; const std::string _token; - const HttpClient& _httpClient; const TgTypeParser _tgTypeParser; const std::string _url; }; -- cgit v1.2.3