From b68611144a92b266ab20b7db8fbce723bb499b70 Mon Sep 17 00:00:00 2001 From: kukin-konstantin Date: Mon, 20 Mar 2017 18:43:36 +0300 Subject: fix errors --- include/tgbot/Api.h | 2 +- include/tgbot/tools/FileTools.h | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/tgbot/Api.h b/include/tgbot/Api.h index b2f6911..bddcd87 100644 --- a/include/tgbot/Api.h +++ b/include/tgbot/Api.h @@ -323,7 +323,7 @@ public: * @param fileId File identifier to get info about * @return A File object. */ - File::Ptr getFile(int32_t fileId) const; + File::Ptr getFile(const std::string &fileId) const; /** * Use this method for your bot to leave a group, supergroup or channel. diff --git a/include/tgbot/tools/FileTools.h b/include/tgbot/tools/FileTools.h index 7329a8e..97fb52c 100644 --- a/include/tgbot/tools/FileTools.h +++ b/include/tgbot/tools/FileTools.h @@ -19,6 +19,13 @@ namespace FileTools { */ std::string read(const std::string& filePath); +/** +* Save file to disk. +* @param filePath Path to a file +* @return bool success +*/ +bool write(const std::string& content, const std::string& filePath); + }; -- cgit v1.2.3