tgbot-cpp
|
This class handles long polling and updates parsing. More...
#include <TgLongPoll.h>
Public Member Functions | |
TgLongPoll (const Api *api, const EventHandler *eventHandler, std::int32_t limit, std::int32_t timeout, std::shared_ptr< std::vector< std::string > > allowUpdates) | |
TgLongPoll (const Bot &bot, std::int32_t limit=100, std::int32_t timeout=10, const std::shared_ptr< std::vector< std::string > > &allowUpdates=nullptr) | |
void | start () |
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. | |
This class handles long polling and updates parsing.
Definition at line 22 of file TgLongPoll.h.
TgBot::TgLongPoll::TgLongPoll | ( | const Api * | api, |
const EventHandler * | eventHandler, | ||
std::int32_t | limit, | ||
std::int32_t | timeout, | ||
std::shared_ptr< std::vector< std::string > > | allowUpdates ) |
TgBot::TgLongPoll::TgLongPoll | ( | const Bot & | bot, |
std::int32_t | limit = 100, | ||
std::int32_t | timeout = 10, | ||
const std::shared_ptr< std::vector< std::string > > & | allowUpdates = nullptr ) |
void TgBot::TgLongPoll::start | ( | ) |
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.