summaryrefslogtreecommitdiff
path: root/include/tgbot/Api.h
diff options
context:
space:
mode:
authorOleg Morozenkov <m@oleg.rocks>2020-11-10 19:07:38 +0300
committerGitHub <noreply@github.com>2020-11-10 19:07:38 +0300
commit9dae1b4ae78218a7ebd341f8b2952fe26affdf74 (patch)
tree0e4013ed935ff9dd0b1c117cad4fd31aeb22ce1c /include/tgbot/Api.h
parentbd70cd3c5206d7c10092f8abb0d07d653b8ce14c (diff)
parent0bf49aa347de2512370c96aef7b5477423f14318 (diff)
Merge pull request #157 from nesc1/customizeServerUrl
Add support to configure the API bot server url
Diffstat (limited to 'include/tgbot/Api.h')
-rw-r--r--include/tgbot/Api.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/tgbot/Api.h b/include/tgbot/Api.h
index e48da6f..1adbbe5 100644
--- a/include/tgbot/Api.h
+++ b/include/tgbot/Api.h
@@ -46,7 +46,7 @@ typedef std::shared_ptr<std::vector<std::string>> StringArrayPtr;
friend class Bot;
public:
- Api(std::string token, const HttpClient& httpClient);
+ Api(std::string token, const HttpClient& httpClient, const std::string& url);
/**
* @brief A simple method for testing your bot's auth token.
@@ -823,6 +823,7 @@ private:
const std::string _token;
const HttpClient& _httpClient;
const TgTypeParser _tgTypeParser;
+ const std::string _url;
};
}