13class EventBroadcaster;
24 explicit Bot(std::string token,
const HttpClient &httpClient = _getDefaultHttpClient(),
const std::string& url=
"https://api.telegram.org");
44 return *_eventBroadcaster;
57 const std::string _token;
59 std::unique_ptr<EventBroadcaster> _eventBroadcaster;
This class executes telegram api methods. Telegram docs: https://core.telegram.org/bots/api#available...
This object holds other objects specific for this bot instance.
const Api & getApi() const
EventBroadcaster & getEvents()
const std::string & getToken() const
Bot(std::string token, const HttpClient &httpClient=_getDefaultHttpClient(), const std::string &url="https://api.telegram.org")
const EventHandler & getEventHandler() const
This class holds all event listeners.
This class makes http requests.