DynuIPRefresher/inc/api/TelegramAPI.h
lukas ba4af36df0 * new class for IP utils
* method to check telegram support out of config
* getters in Config.cpp
* lots of reformatings and cdoc
2020-05-07 14:54:40 +02:00

30 lines
543 B
C++

//
// Created by lukas on 08.05.19.
//
#pragma once
#include "API.h"
#include <string>
class TelegramAPI : API {
public:
/**
* send telegram Message to predefined destination
* @param text message
*/
int sendMessage(const 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:
std::string apikey;
std::string chatid;
};