#ifndef TGBOT_TGWEBHOOKLOCALSERVER_H #define TGBOT_TGWEBHOOKLOCALSERVER_H #ifdef BOOST_ASIO_HAS_LOCAL_SOCKETS #include "tgbot/net/TgWebhookServer.h" #include namespace TgBot { /** * @brief This class setups HTTP server for receiving Telegram Update objects from unix socket. * * @ingroup net */ class TgWebhookLocalServer : public TgWebhookServer { public: TgWebhookLocalServer(const std::string& unixSocketPath, const std::string& path, const EventHandler& eventHandler) : TgWebhookServer(boost::asio::local::stream_protocol::endpoint(unixSocketPath), path, eventHandler) { } TgWebhookLocalServer(const std::string& unixSocketPath, const Bot& bot) : TgWebhookServer(boost::asio::local::stream_protocol::endpoint(unixSocketPath), bot) { } }; } #endif //BOOST_ASIO_HAS_LOCAL_SOCKETS #endif //TGBOT_TGWEBHOOKLOCALSERVER_H