1 #ifndef _TELEGRAM_BOT_H_
2 #define _TELEGRAM_BOT_H_
61 void apiRequest(std::string, std::map<std::string, std::string>);
62 Json::Value
apiRequestJson(std::string, std::map<std::string, std::string>);
std::string command
The command, e.g. /help.
std::string help_text
Help text of the command.
Telegram::User * getMe(void)
void setWebhook(std::string)
Json::Value apiRequestFile(std::string, std::string, std::string)
void processMessage(std::string)
void apiRequest(std::string, std::map< std::string, std::string >)
std::map< std::string, TCommand > getCommandMap()
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()
Json::Value apiRequestJson(std::string, std::map< std::string, std::string >)
Telegram::Message * sendPhoto(std::string, Json::Int64)
Telegram::Message * sendMessage(std::string, Json::Int64)