tgbot-cpp icon indicating copy to clipboard operation
tgbot-cpp copied to clipboard

C++ library for Telegram bot API

Results 79 tgbot-cpp issues
Sort by recently updated
recently updated
newest added

Hi everybody! I am trying to download a picture that is sent to a bot in a chat, here is my implementation: I understand that it is not the best,...

I am providing a vector of strings as the third parameter to this method, but the request fails and I catch an exception with the following message: ``` Bad Request:...

When trying to send user's document back to user via: ```c++ bot_.getEvents().onAnyMessage([&](TgBot::Message::Ptr message) { auto user_document = message->document; if (user_document){ TgBot::File::Ptr file = bot_.getApi().getFile(user_document->fileId); std::string file_content = bot_.getApi().downloadFile(file->filePath); bot_.getApi().sendDocument(message->chat->id, file_content);...

How can I get all chat member list? On vector for example. (bot is administrator)

Hi everybody! Guys is that library maintain unicode or something like that? i wanted to use wstring but it doesn't maintains. My aim is write symbols by using cyryllic alphabet....

I builded the library and imported in my project. Everything is working fine. I'm currently sending messages, pictures and other feature. When I tried to add a BotCommand using the...

Thank you for developing such a great library. I have written a few apps with it and they all work great. In a recent attempt, I try to create a...

Hi. I hope you can help. I've built a webhook based bot using the latest pull of TGBot. The code compiles and runs without problems, but it does not reply...

bug
solution found
in TgWebhookServer

If internet connection fail, bot will stop in (write(socket, buffer(requestText.c_str(), requestText.length())); (or read, I did't check yet)). Deadline timer can be used in this case (example http://www.boost.org/doc/libs/1_45_0/doc/html/boost_asio/example/timeouts/async_tcp_client.cpp ).

bug
in BoostHttpOnlySslClient