From b3f888804a5415bc8679e3cf7d1e98863c713a71 Mon Sep 17 00:00:00 2001 From: Oleg Morozenkov Date: Tue, 21 Mar 2017 19:04:28 +0300 Subject: Add doc to TgBot::Api::downloadFile method --- include/tgbot/Api.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') 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& args = std::vector()) const; private: -- cgit v1.2.3