reo7sp / tgbot-cpp

C++ library for Telegram bot API

Home Page:http://reo7sp.github.io/tgbot-cpp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Skip_update feature. Old messages. Easy and legal Stop Bot process.

DmitrTRC opened this issue · comments

I have some problems with old messages. When I try to stop Bot this way:

On /stop command
bool is_active = false; // Set flag false stops Bot operation and exit loop while (is_active){ std::cout << "Long poll started" << std::endl; longPoll.start ();
When the next Bot start, all old messages ( and /STOP command! ) are received, and the Bot exits again.
How do I fix it?

So good!