#include "Bot.h"
Definition at line 28 of file Bot.h.
◆ Bot()
◆ addOnChannelPostEditedListener()
void Bot::addOnChannelPostEditedListener |
( |
std::function< void(Message)> |
Listener | ) |
|
◆ addOnChannelPostListener()
void Bot::addOnChannelPostListener |
( |
std::function< void(Message)> |
Listener | ) |
|
◆ addOnInlineQueryListener()
void Bot::addOnInlineQueryListener |
( |
std::function< void(InlineQuery)> |
Listener | ) |
|
◆ addOnMessageBotCommandListener()
◆ addOnMessageEditedListener()
void Bot::addOnMessageEditedListener |
( |
std::function< void(Message)> |
Listener | ) |
|
◆ addOnMessageListener()
void Bot::addOnMessageListener |
( |
std::function< void(Message)> |
Listener | ) |
|
◆ addOnUpdateListener()
void Bot::addOnUpdateListener |
( |
std::function< void(Update)> |
Listener | ) |
|
◆ getMe()
const User Bot::getMe |
( |
| ) |
const |
◆ join()
Function to join the main threads so cpu load is not 100 % when using this
- Returns
Definition at line 44 of file Bot.cc.
◆ LongPolling()
void Bot::LongPolling |
( |
long |
timeout | ) |
|
|
private |
◆ NotifyRegisteredListeners()
void Bot::NotifyRegisteredListeners |
( |
| ) |
|
|
private |
◆ send()
◆ startLongPoll() [1/2]
void Bot::startLongPoll |
( |
| ) |
|
Defaults starts with a timeout of 100s
Definition at line 72 of file Bot.cc.
◆ startLongPoll() [2/2]
void Bot::startLongPoll |
( |
long |
timeout | ) |
|
◆ startUpdating()
void Bot::startUpdating |
( |
| ) |
|
◆ stopLongPoll()
void Bot::stopLongPoll |
( |
| ) |
|
◆ stopUpdating()
void Bot::stopUpdating |
( |
| ) |
|
◆ isPolling
bool yatbcpp::Bot::isPolling |
|
private |
Definition at line 74 of file Bot.h.
◆ isUpdating
bool yatbcpp::Bot::isUpdating |
|
private |
Definition at line 75 of file Bot.h.
std::mutex yatbcpp::Bot::m |
|
private |
Definition at line 80 of file Bot.h.
◆ OnChannelPostEditedListener
std::vector<std::function<void(Message)> > yatbcpp::Bot::OnChannelPostEditedListener |
|
private |
Definition at line 89 of file Bot.h.
◆ OnChannelPostListener
std::vector<std::function<void(Message)> > yatbcpp::Bot::OnChannelPostListener |
|
private |
Definition at line 88 of file Bot.h.
◆ OnInlineQueryListener
std::vector<std::function<void(InlineQuery)> > yatbcpp::Bot::OnInlineQueryListener |
|
private |
Definition at line 90 of file Bot.h.
◆ OnMessageCommandListener
Definition at line 85 of file Bot.h.
◆ OnMessageEditedListener
std::vector<std::function<void(Message)> > yatbcpp::Bot::OnMessageEditedListener |
|
private |
Definition at line 87 of file Bot.h.
◆ OnMessageListener
std::vector<std::function<void(Message)> > yatbcpp::Bot::OnMessageListener |
|
private |
Definition at line 86 of file Bot.h.
◆ OnUpdateListeners
std::vector<std::function<void(Update)> > yatbcpp::Bot::OnUpdateListeners |
|
private |
Definition at line 84 of file Bot.h.
◆ pendingUpdates
std::queue<Update> yatbcpp::Bot::pendingUpdates |
|
private |
Definition at line 81 of file Bot.h.
◆ pendingUpdatesAvailable
std::condition_variable yatbcpp::Bot::pendingUpdatesAvailable |
|
private |
Definition at line 82 of file Bot.h.
◆ Polling
std::thread yatbcpp::Bot::Polling |
|
private |
Definition at line 71 of file Bot.h.
◆ token
const Token yatbcpp::Bot::token |
|
private |
Definition at line 67 of file Bot.h.
◆ Updating
std::thread yatbcpp::Bot::Updating |
|
private |
Definition at line 72 of file Bot.h.
The documentation for this class was generated from the following files: