outsourced main method of ip refresh and added some doc

This commit is contained in:
max committed 2019-08-02 22:44:42 +02:00
1 parent 700d7912df
commit f325c3a371
8 files changed
+82 -43

No files matched your search

+5
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;
}