tgbot-cpp
TgBot::Bot Class Reference

#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 38 of file Bot.h.

Constructor & Destructor Documentation

◆ Bot()

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

Definition at line 41 of file Bot.h.

Member Function Documentation

◆ getApi()

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

Definition at line 54 of file Bot.h.

◆ getEventHandler()

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 68 of file Bot.h.

◆ getEvents()

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

Definition at line 61 of file Bot.h.

◆ getToken()

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

Definition at line 47 of file Bot.h.


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