tgbot-cpp
Loading...
Searching...
No Matches
TgWebhookTcpServer.h
Go to the documentation of this file.
1#pragma once
2
4#include "tgbot/export.h"
5
6#include <string>
7
8namespace TgBot {
9
14class TGBOT_API TgWebhookTcpServer : public TgWebhookServer<boost::asio::ip::tcp> {
15public:
16 TgWebhookTcpServer(unsigned short port, const std::string& path, const EventHandler& eventHandler);
17
18 TgWebhookTcpServer(unsigned short port, const Bot& bot);
19};
20
21} // namespace TgBot
This object holds other objects specific for this bot instance.
Definition Bot.h:20
TgWebhookServer(const typename boost::asio::basic_socket_acceptor< boost::asio::ip::tcp >::endpoint_type &endpoint, const typename HttpServer< boost::asio::ip::tcp >::ServerHandler &handler)=delete
TgWebhookTcpServer(unsigned short port, const std::string &path, const EventHandler &eventHandler)
TgWebhookTcpServer(unsigned short port, const Bot &bot)
#define TGBOT_API
Definition export.h:5
Definition Api.h:17