From 47f5f69f1df08d030e57f81f87024146372a2ce0 Mon Sep 17 00:00:00 2001 From: fadhil riyanto Date: Sat, 10 Aug 2024 17:45:01 +0700 Subject: re-order TgBot::Bot class parameter Signed-off-by: fadhil riyanto --- include/tgbot/Bot.h | 2 +- src/Bot.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/tgbot/Bot.h b/include/tgbot/Bot.h index 36d3cb4..d7ed0c0 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(), const std::string& url="https://api.telegram.org"); + explicit Bot(std::string token, const std::string& url, const HttpClient &httpClient = _getDefaultHttpClient()); /** * @return Token for accessing api. diff --git a/src/Bot.cpp b/src/Bot.cpp index 080b9a2..566f041 100644 --- a/src/Bot.cpp +++ b/src/Bot.cpp @@ -8,7 +8,7 @@ namespace TgBot { -Bot::Bot(std::string token, const HttpClient& httpClient, const std::string& url) +Bot::Bot(std::string token, const std::string& url, const HttpClient& httpClient) : _token(std::move(token)) , _api(_token, httpClient, url) , _eventBroadcaster(std::make_unique()) -- cgit v1.2.3