Returning message obj where it is needed

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