summaryrefslogtreecommitdiff
path: root/include/tgbot/net
diff options
context:
space:
mode:
authorEgor Pugin <egor.pugin@gmail.com>2020-03-13 02:54:09 +0300
committerGitHub <noreply@github.com>2020-03-13 02:54:09 +0300
commitd1c6a8062577f5ce58105afff2d0a1887bfff957 (patch)
tree803f0354d6178158228944c5d83d71da9bdb95dd /include/tgbot/net
parent2237d1413ac87d88951763ad880d9e0b758fdd74 (diff)
Fix too big timeout in long poller.
Make it 10 seconds instead of 60. Old timeout made bots irresponsible.
Diffstat (limited to 'include/tgbot/net')
-rw-r--r--include/tgbot/net/TgLongPoll.h2
1 files changed, 1 insertions, 1 deletions
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<std::vector<std::string>>&);
- TgLongPoll(const Bot& bot, int32_t = 100, int32_t = 60, const std::shared_ptr<std::vector<std::string>>& = nullptr);
+ TgLongPoll(const Bot& bot, int32_t = 100, int32_t = 10, const std::shared_ptr<std::vector<std::string>>& = 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.