tgbot-cpp
tgbot-cpp copied to clipboard
C++ library for Telegram bot API
based on the [documentation](https://reo7sp.github.io/tgbot-cpp/class_tg_bot_1_1_reply_parameters.html), my bot should be able to respond to a message without specifying the chat id if the message is in the same chat. however when i...
code ``` #include #include int main() { TgBot::Bot bot("PLACE YOUR TOKEN HERE"); bot.getEvents().onCommand("start", [&bot](TgBot::Message::Ptr message) { bot.getApi().sendMessage(message->chat->id, "Hi!"); }); bot.getEvents().onAnyMessage([&bot](TgBot::Message::Ptr message) { printf("User wrote %s\n", message->text.c_str()); if (StringTools::startsWith(message->text, "/start")) {...
I was build this [telegram-bot-api](https://github.com/tdlib/telegram-bot-api) which serve as local api for my server, instead use default api.telegram.org. one of the advantages is fast than normal telegram api server (because its...
## Description: We have discovered a critical security vulnerability in the HTTP client implementation of this library. The issue lies in the SSL verification process, where SSL certificate verification is...
If you use ARM in macOS (M1, M2 etc) you should use "g++ YOUR_PROGRAM.cpp -o YOUR_PROGRAM --std=c++14 **-I/opt/homebrew/include** -L/opt/homebrew/lib -lTgBot -lboost_system -lssl -lcrypto -lpthrea" instead "g++ test.cpp -o test --std=c++14...
Hello! I'm currently experiencing some Issues with InlineQuery... My Code: ``` bot.getEvents().onInlineQuery([&bot](const InlineQuery::Ptr& query) { std::vector results; InlineQueryResultArticle::Ptr article(new InlineQueryResultArticle); auto text = InputTextMessageContent(); text.messageText = "Inline Test"; article->title =...
- The before implementation had some bugs, like createNewStickerSet failing due to invalid JSON. This converts the code to jsoncpp, removing manual string concatation. - Have to check if everything...
Severity Code Description Project File String Suppression State Details Error (active) E0020 identifier "__builtin_FUNCSIG" is not defined test D:\Programs\Projects\vcpkg-master\installed\x64-windows\include\boost\asio\detail\throw_error.hpp 39