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>);
std::string command
The command, e.g. /help.
void sendMessage(std::string, Json::Int64)
std::string help_text
Help text of the command.
void setWebhook(std::string)
void processMessage(std::string)
void apiRequest(std::string, std::map< std::string, std::string >)
std::map< std::string, TCommand > getCommandMap()
void sendPhoto(std::string, Json::Int64)
std::string processCommand(std::string)
CommandCallback callback
Pointer to the callback function.
std::string(* CommandCallback)(TelegramBot *, TCommandLine)
Definition for a callback routine.
std::map< std::string, TCommand > TCommandMap
Map that stores the known commands.
std::vector< std::string > TCommandLine
Arguments for the bot's commands.
void addCommand(TCommand)
Telegram::Message * getMessage()
void apiRequestJson(std::string, std::map< std::string, std::string >)