From 0bf49aa347de2512370c96aef7b5477423f14318 Mon Sep 17 00:00:00 2001 From: Nuno Esculcas Date: Sun, 8 Nov 2020 12:01:39 +0000 Subject: 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. --- include/tgbot/Bot.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/tgbot/Bot.h') 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. -- cgit v1.2.3