DynuIPRefresher/inc/api/TelegramAPI.h

30 lines
543 B
C
Raw Permalink Normal View History

//
// Created by lukas on 08.05.19.
//
#pragma once
#include "API.h"
#include <string>
2019-05-08 17:31:49 +00:00
class TelegramAPI : API {
public:
/**
* send telegram Message to predefined destination
* @param text message
*/
2020-04-30 17:37:11 +00:00
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;
};