tgbot-cpp
Loading...
Searching...
No Matches
TgBot::TgLongPoll Class Reference

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.
 

Detailed Description

This class handles long polling and updates parsing.

Definition at line 22 of file TgLongPoll.h.

Constructor & Destructor Documentation

◆ TgLongPoll() [1/2]

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 )

◆ TgLongPoll() [2/2]

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 )

Member Function Documentation

◆ start()

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.


The documentation for this class was generated from the following file: