summaryrefslogtreecommitdiff
path: root/include/tgbot/Bot.h
diff options
context:
space:
mode:
authorNuno Esculcas <Nuno.Esculcas@ctw.bmwgroup.com>2020-11-08 12:01:39 +0000
committerNuno Esculcas <Nuno.Esculcas@ctw.bmwgroup.com>2020-11-08 12:01:39 +0000
commit0bf49aa347de2512370c96aef7b5477423f14318 (patch)
treee2111fe529bf0d2fa13ad5fbfc29bb67c50f1cf4 /include/tgbot/Bot.h
parent9fe48a3628b58dc259c36a106630d8134d029da5 (diff)
Add support to configure the API bot server url
Now creating the bot class it is possible to override the API bot server url that defaults to: 'https://api.telegram.org' This enables you to connect your bot to the local API bot server.
Diffstat (limited to 'include/tgbot/Bot.h')
-rw-r--r--include/tgbot/Bot.h2
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.