From d1c6a8062577f5ce58105afff2d0a1887bfff957 Mon Sep 17 00:00:00 2001 From: Egor Pugin Date: Fri, 13 Mar 2020 02:54:09 +0300 Subject: Fix too big timeout in long poller. Make it 10 seconds instead of 60. Old timeout made bots irresponsible. --- include/tgbot/net/TgLongPoll.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/tgbot/net/TgLongPoll.h b/include/tgbot/net/TgLongPoll.h index 8bf739a..8e62cd1 100644 --- a/include/tgbot/net/TgLongPoll.h +++ b/include/tgbot/net/TgLongPoll.h @@ -16,7 +16,7 @@ class TgLongPoll { public: TgLongPoll(const Api* api, const EventHandler* eventHandler, int32_t, int32_t, const std::shared_ptr>&); - TgLongPoll(const Bot& bot, int32_t = 100, int32_t = 60, const std::shared_ptr>& = nullptr); + TgLongPoll(const Bot& bot, int32_t = 100, int32_t = 10, const std::shared_ptr>& = nullptr); /** * @brief Starts long poll. After new update will come, this method will parse it and send to EventHandler which invokes your listeners. Designed to be executed in a loop. -- cgit v1.2.3