// // Created by lukas on 08.05.19. // #include "api/TelegramAPI.h" void TelegramAPI::sendMessage(std::string text) { Hashmap args; args.add("chat_id", chatid); args.add("text", text); std::vector headers; std::string reply = request("https://api.telegram.org/bot" + apikey + "/sendmessage", false, args, headers); // std::cout << "[DEBUG] " << reply << std::endl; } void TelegramAPI::init(std::string apikey, std::string chatid) { this->apikey = apikey; this->chatid = chatid; }