outsourced main method of ip refresh and added some doc
This commit is contained in:
14
inc/IPRefresher.h
Normal file
14
inc/IPRefresher.h
Normal file
@ -0,0 +1,14 @@
|
||||
//
|
||||
// Created by lukas on 02.08.19.
|
||||
//
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
class IPRefresher {
|
||||
public:
|
||||
/**
|
||||
* refresh ip address on Dynu server
|
||||
*/
|
||||
void checkIPAdress();
|
||||
};
|
@ -3,6 +3,7 @@
|
||||
//
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
class Logger {
|
||||
public:
|
||||
/**
|
||||
|
@ -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;
|
||||
};
|
||||
|
Reference in New Issue
Block a user