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

@ -16,7 +16,14 @@ public:
*/
void sendMessage(std::string text);
/**
* init Telegram api with apikey and chatid
* @param apikey recieved API key
* @param chatid chatid where bot should post into
*/
void init(std::string apikey, std::string chatid);
private:
const std::string apikey = "717213769:AAHan1nSXhUsxLJAN1Dv8Oc0z8wqwDdYPn4";
const std::string chatid = "618154204";
std::string apikey;
std::string chatid;
};