tgbot-cpp
TgBot::Bot Class Reference

This object holds other objects specific for this bot instance. More...

#include <Bot.h>

Public Member Functions

 Bot (const std::string &token)
 
const std::string & getToken () const
 
const ApigetApi () const
 
EventBroadcastergetEvents ()
 
const EventHandlergetEventHandler () const
 

Detailed Description

This object holds other objects specific for this bot instance.

Definition at line 39 of file Bot.h.

Constructor & Destructor Documentation

TgBot::Bot::Bot ( const std::string &  token)
inlineexplicit

Definition at line 42 of file Bot.h.

Member Function Documentation

const Api& TgBot::Bot::getApi ( ) const
inline
Returns
Object which can execute Telegram Bot API methods.

Definition at line 55 of file Bot.h.

const EventHandler& TgBot::Bot::getEventHandler ( ) const
inline
Returns
Object which handles new update objects. Usually it's only needed for TgLongPoll, TgWebhookLocalServer and TgWebhookTcpServer objects.

Definition at line 69 of file Bot.h.

EventBroadcaster& TgBot::Bot::getEvents ( )
inline
Returns
Object which holds all event listeners.

Definition at line 62 of file Bot.h.

const std::string& TgBot::Bot::getToken ( ) const
inline
Returns
Token for accessing api.

Definition at line 48 of file Bot.h.


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