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/net/HttpClient.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/tgbot/net/HttpClient.h') diff --git a/include/tgbot/net/HttpClient.h b/include/tgbot/net/HttpClient.h index a35dd7d..024c8ad 100644 --- a/include/tgbot/net/HttpClient.h +++ b/include/tgbot/net/HttpClient.h @@ -26,6 +26,8 @@ public: * If at least 1 arg is marked as file, the content type of a request will be multipart/form-data, otherwise it will be application/x-www-form-urlencoded. */ virtual std::string makeRequest(const Url& url, const std::vector& args) const = 0; + + std::int32_t _timeout = 25; }; } -- cgit v1.2.3