summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorOleg Morozenkov <reo7sp@users.noreply.github.com>2017-03-21 19:04:28 +0300
committerOleg Morozenkov <reo7sp@users.noreply.github.com>2017-03-21 19:04:28 +0300
commitb3f888804a5415bc8679e3cf7d1e98863c713a71 (patch)
treea8f285ea64d0d261470f53a9598d9907066b5c14 /include
parent4d9e96d9c91e1faeefb67de2164c026f84be020e (diff)
Add doc to TgBot::Api::downloadFile method
Diffstat (limited to 'include')
-rw-r--r--include/tgbot/Api.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/tgbot/Api.h b/include/tgbot/Api.h
index 0710f17..72ab5dc 100644
--- a/include/tgbot/Api.h
+++ b/include/tgbot/Api.h
@@ -475,6 +475,12 @@ public:
*/
bool unbanChatMember(int64_t chatId, int32_t userId) const;
+ /**
+ * Downloads file from Telegram and saves it in memory.
+ * @param filePath Telegram file id.
+ * @param args Additional api parameters.
+ * @return File contents in a string.
+ */
std::string downloadFile(const std::string& filePath, const std::vector<HttpReqArg>& args = std::vector<HttpReqArg>()) const;
private: