2019-05-08 17:19:42 +00:00
|
|
|
//
|
|
|
|
// Created by lukas on 08.05.19.
|
|
|
|
//
|
|
|
|
|
2019-08-01 19:19:02 +00:00
|
|
|
#pragma once
|
2019-05-08 17:19:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include "API.h"
|
|
|
|
|
2019-05-08 17:31:49 +00:00
|
|
|
class TelegramAPI : API {
|
2019-05-08 17:19:42 +00:00
|
|
|
public:
|
2019-08-01 19:19:02 +00:00
|
|
|
/**
|
|
|
|
* send telegram Message to predefined destination
|
|
|
|
* @param text message
|
|
|
|
*/
|
2019-05-08 17:19:42 +00:00
|
|
|
void sendMessage(std::string text);
|
|
|
|
|
|
|
|
private:
|
2019-06-18 09:42:26 +00:00
|
|
|
const std::string apikey = "717213769:AAHan1nSXhUsxLJAN1Dv8Oc0z8wqwDdYPn4";
|
|
|
|
const std::string chatid = "618154204";
|
2019-05-08 17:19:42 +00:00
|
|
|
};
|