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

Can't figure out about editing recently sent messages by bot

Open Amirhan-Taipovjan-Greatest-I opened this issue 2 years ago • 0 comments

I can't find any possible method to do that in C++.

Example: I have this part of code:

        bot.getApi().sendMessage(message->chat->id, "|", false, 0, 0, "Markdown", false);
        Sleep(5000);
        bot.getApi().editMessageText("/", message->chat->id, message->messageId, 0, "Markdown", false, 0);

Even if message->messageId isn't zero or something else, I still can't do that code because it sends me to This