outsourced main method of ip refresh and added some doc

This commit is contained in:
2019-08-02 22:44:42 +02:00
parent 700d7912df
commit f325c3a371
8 changed files with 82 additions and 43 deletions

View File

@ -14,3 +14,8 @@ void TelegramAPI::sendMessage(std::string text) {
std::string reply = request("https://api.telegram.org/bot" + apikey + "/sendmessage", false, args, headers);
// std::cout << "[DEBUG] " << reply << std::endl;
}
void TelegramAPI::init(std::string apikey, std::string chatid) {
this->apikey = apikey;
this->chatid = chatid;
}