diff options
author | Oleg Morozenkov <m@oleg.rocks> | 2020-11-10 19:07:38 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-10 19:07:38 +0300 |
commit | 9dae1b4ae78218a7ebd341f8b2952fe26affdf74 (patch) | |
tree | 0e4013ed935ff9dd0b1c117cad4fd31aeb22ce1c /include/tgbot/Bot.h | |
parent | bd70cd3c5206d7c10092f8abb0d07d653b8ce14c (diff) | |
parent | 0bf49aa347de2512370c96aef7b5477423f14318 (diff) |
Merge pull request #157 from nesc1/customizeServerUrl
Add support to configure the API bot server url
Diffstat (limited to 'include/tgbot/Bot.h')
-rw-r--r-- | include/tgbot/Bot.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tgbot/Bot.h b/include/tgbot/Bot.h index 023a71b..36d3cb4 100644 --- a/include/tgbot/Bot.h +++ b/include/tgbot/Bot.h @@ -21,7 +21,7 @@ class HttpClient; class TGBOT_API Bot { public: - explicit Bot(std::string token, const HttpClient &httpClient = _getDefaultHttpClient()); + explicit Bot(std::string token, const HttpClient &httpClient = _getDefaultHttpClient(), const std::string& url="https://api.telegram.org"); /** * @return Token for accessing api. |