summaryrefslogtreecommitdiff
path: root/include/tgbot/Api.h
diff options
context:
space:
mode:
authorllnulldisk <48621230+llnulldisk@users.noreply.github.com>2023-01-29 14:54:20 +0100
committerllnulldisk <48621230+llnulldisk@users.noreply.github.com>2023-01-29 14:54:20 +0100
commita8defacf2ba9bc3029b16af48a539553f873866b (patch)
tree8cea4cad5a8bc15e8213193743111f41a73e1461 /include/tgbot/Api.h
parent443b769670046340e266893e00f947c9ce37462f (diff)
Fix timeout issues (#251)
Diffstat (limited to 'include/tgbot/Api.h')
-rw-r--r--include/tgbot/Api.h3
1 files changed, 2 insertions, 1 deletions
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<HttpReqArg>& args = std::vector<HttpReqArg>()) const;
const std::string _token;
- const HttpClient& _httpClient;
const TgTypeParser _tgTypeParser;
const std::string _url;
};