summaryrefslogtreecommitdiff
path: root/include/tgbot/Api.h
diff options
context:
space:
mode:
authorkukin-konstantin <kukin.konstantin@gmail.com>2017-03-20 19:55:17 +0300
committerkukin-konstantin <kukin.konstantin@gmail.com>2017-03-20 19:55:17 +0300
commit156c087f3eeeeffb949ae6a572dd7b52815eb0e5 (patch)
tree60af55841a59d7af13bb492d248e0744478e8056 /include/tgbot/Api.h
parentb68611144a92b266ab20b7db8fbce723bb499b70 (diff)
add function download file
Diffstat (limited to 'include/tgbot/Api.h')
-rw-r--r--include/tgbot/Api.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/tgbot/Api.h b/include/tgbot/Api.h
index bddcd87..0710f17 100644
--- a/include/tgbot/Api.h
+++ b/include/tgbot/Api.h
@@ -475,6 +475,8 @@ public:
*/
bool unbanChatMember(int64_t chatId, int32_t userId) const;
+ std::string downloadFile(const std::string& filePath, const std::vector<HttpReqArg>& args = std::vector<HttpReqArg>()) const;
+
private:
boost::property_tree::ptree sendRequest(const std::string& method, const std::vector<HttpReqArg>& args = std::vector<HttpReqArg>()) const;