From 2fca50e53286d31d28679565336139b337bc608c Mon Sep 17 00:00:00 2001 From: Oleg Morozenkov Date: Tue, 21 Mar 2017 19:08:13 +0300 Subject: Docs --- docs/class_tg_bot_1_1_api.html | 50 +++++++++++++++++++++++++++++++++++++----- 1 file changed, 44 insertions(+), 6 deletions(-) (limited to 'docs/class_tg_bot_1_1_api.html') diff --git a/docs/class_tg_bot_1_1_api.html b/docs/class_tg_bot_1_1_api.html index 72bada4..51671ca 100644 --- a/docs/class_tg_bot_1_1_api.html +++ b/docs/class_tg_bot_1_1_api.html @@ -134,8 +134,8 @@ Public Member Functions   UserProfilePhotos::Ptr getUserProfilePhotos (int32_t userId, int32_t offset=0, int32_t limit=100) const   -File::Ptr getFile (int32_t fileId) const -  +File::Ptr getFile (const std::string &fileId) const +  bool leaveChat (int64_t chatId) const   Chat::Ptr getChat (int64_t chatId) const @@ -168,6 +168,8 @@ Public Member Functions   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 +  @@ -342,6 +344,42 @@ Friends

Use this method to remove webhook integration if you decide to switch back to getUpdates. Returns True on success. Requires no parameters.

+
+ + +

◆ downloadFile()

+ +
+
+

Friends

+ + + + + + + + + + + + + + + + + +
std::string TgBot::Api::downloadFile (const std::string & filePath,
const std::vector< HttpReqArg > & args = std::vector< HttpReqArg >() 
) const
+
+

Downloads file from Telegram and saves it in memory.

Parameters
+ + + +
filePathTelegram file id.
argsAdditional api parameters.
+
+
+
Returns
File contents in a string.
+
@@ -683,8 +721,8 @@ Friends - -

◆ getFile()

+ +

◆ getFile()

@@ -692,7 +730,7 @@ Friends File::Ptr TgBot::Api::getFile ( - int32_t  + const std::string &  fileId) const @@ -2192,7 +2230,7 @@ Friends