23 #ifndef TGBOT_TGLONGPOLL_H 24 #define TGBOT_TGLONGPOLL_H 40 TgLongPoll(
const Api* api,
const EventHandler* eventHandler, int32_t, int32_t,
const std::shared_ptr<std::vector<std::string>>&);
41 TgLongPoll(
const Bot& bot, int32_t = 100, int32_t = 60,
const std::shared_ptr<std::vector<std::string>>& =
nullptr);
49 int32_t _lastUpdateId = 0;
52 std::shared_ptr<std::vector<std::string>> _allowupdates;
59 #endif //TGBOT_TGLONGPOLL_H This class handles long polling and updates parsing.
This class executes telegram api methods. Telegram docs: https://core.telegram.org/bots/api#available...
void start()
Starts long poll. After new update will come, this method will parse it and send to EventHandler whic...
This object holds other objects specific for this bot instance.
TgLongPoll(const Api *api, const EventHandler *eventHandler, int32_t, int32_t, const std::shared_ptr< std::vector< std::string >> &)