mirror of
https://github.com/UltraCoderRU/telebotxx.git
synced 2026-01-28 04:05:13 +00:00
BotApi::Impl member functions inlined.
This commit is contained in:
parent
e8e7f9b5bd
commit
45cefdcd73
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue