apiRequestJson now returns Message

This commit is contained in:
Hauke Zühl
2017-06-07 20:39:42 +02:00
parent e9693a9f4d
commit bcbf1e45ee
2 changed files with 38 additions and 29 deletions
+3 -3
View File
@@ -41,8 +41,8 @@ namespace Telegram {
void sendMessage(std::string, Json::Int64);
void sendMessage(std::string, std::string);
void sendPhoto(std::string, Json::Int64);
void sendPhoto(std::string, std::string);
Telegram::Message *sendPhoto(std::string, Json::Int64);
Telegram::Message *sendPhoto(std::string, std::string);
Telegram::Message *getMessage();
std::map<std::string, TCommand> getCommandMap();
@@ -55,7 +55,7 @@ namespace Telegram {
void init();
void apiRequest(std::string, std::map<std::string, std::string>);
void apiRequestJson(std::string, std::map<std::string, std::string>);
Telegram::Message *apiRequestJson(std::string, std::map<std::string, std::string>);
std::string processCommand(std::string);
};
}