BotApi::Impl member functions inlined.

This commit is contained in:
Kirill Kirilenko 2016-09-26 14:26:14 +03:00
parent e8e7f9b5bd
commit 45cefdcd73

View file

@ -21,7 +21,7 @@ public:
/// \todo run getMe command to check token /// \todo run getMe command to check token
} }
void sendMessage(const std::string& chat, const std::string& text) inline void sendMessage(const std::string& chat, const std::string& text)
{ {
// Construct JSON body and istream // Construct JSON body and istream
using namespace rapidjson; using namespace rapidjson;
@ -63,7 +63,7 @@ public:
request.perform(); request.perform();
} }
void sendPhoto(const std::string& chat, const std::istream& file, const std::string& caption) inline void sendPhoto(const std::string& chat, const std::istream& file, const std::string& caption)
{ {
// Construct HTTP request // Construct HTTP request
curlpp::Easy request; curlpp::Easy request;