1 #ifndef _TELEGRAM_BOT_H_ 
    2 #define _TELEGRAM_BOT_H_ 
   57     void apiRequest(std::string, std::map<std::string, std::string>);
 
   58     void apiRequestJson(std::string, std::map<std::string, std::string>);
 
void init()
Definition: TelegramBot.cc:94
 
std::string command
Definition: TelegramBot.h:20
 
Telegram::Message * msg
Definition: TelegramBot.h:52
 
void sendMessage(std::string, Json::Int64)
Definition: TelegramBot.cc:69
 
std::string help_text
Definition: TelegramBot.h:22
 
void setWebhook(std::string)
Definition: TelegramBot.cc:46
 
void processMessage(std::string)
Definition: TelegramBot.cc:55
 
void apiRequest(std::string, std::map< std::string, std::string >)
Definition: TelegramBot.cc:100
 
std::map< std::string, TCommand > getCommandMap()
Definition: TelegramBot.cc:88
 
std::string processCommand(std::string)
Definition: TelegramBot.cc:162
 
Definition: TelegramBot.h:19
 
TelegramBot()
Definition: TelegramBot.cc:20
 
CommandCallback callback
Definition: TelegramBot.h:21
 
std::string(* CommandCallback)(TelegramBot *, TCommandLine)
Definition: TelegramBot.h:18
 
std::map< std::string, TCommand > TCommandMap
Definition: TelegramBot.h:24
 
TCommandMap command_map
Definition: TelegramBot.h:53
 
std::vector< std::string > TCommandLine
Definition: TelegramBot.h:14
 
void addCommand(TCommand)
Definition: TelegramBot.cc:32
 
Telegram::Message * getMessage()
Definition: TelegramBot.cc:83
 
Json::Int64 chat_id
Definition: TelegramBot.h:54
 
void apiRequestJson(std::string, std::map< std::string, std::string >)
Definition: TelegramBot.cc:135
 
std::string api_url
Definition: TelegramBot.h:51
 
Definition: TelegramBot.h:26