#include "connectors/tgbot-cpp/TgbotCppConnector.h" int main(void) { MBFT::IConnector *c = new MBFT::TgbotCppConnector(); for ( ; ; ) { std::shared_ptr msg = c->receive(); std::shared_ptr reply = std::make_shared(); reply->target_chat_id = msg->chat->id; reply->text = std::string("Hello! The message was:\n") + msg->text; c->send(reply); } }