tgbot-cpp
Loading...
Searching...
No Matches
TgWebhookTcpServer.h
Go to the documentation of this file.
1#ifndef TGBOT_TGWEBHOOKTCPSERVER_H
2#define TGBOT_TGWEBHOOKTCPSERVER_H
3
5
6#include <string>
7
8namespace TgBot {
9
14class TgWebhookTcpServer : public TgWebhookServer<boost::asio::ip::tcp> {
15
16public:
17 TgWebhookTcpServer(unsigned short port, const std::string& path, const EventHandler& eventHandler)
18 : TgWebhookServer<boost::asio::ip::tcp>(boost::asio::ip::tcp::endpoint(boost::asio::ip::tcp::v4(), port),
19 path, eventHandler)
20 {
21 }
22
23 TgWebhookTcpServer(unsigned short port, const Bot& bot)
24 : TgWebhookServer<boost::asio::ip::tcp>(boost::asio::ip::tcp::endpoint(boost::asio::ip::tcp::v4(), port),
25 bot)
26 {
27 }
28};
29
30}
31
32#endif //TGBOT_TGWEBHOOKTCPSERVER_H
This object holds other objects specific for this bot instance.
Definition Bot.h:21
TgWebhookTcpServer(unsigned short port, const std::string &path, const EventHandler &eventHandler)
TgWebhookTcpServer(unsigned short port, const Bot &bot)
Definition Api.h:40