tgbot-cpp
tgbot-cpp copied to clipboard
Can't figure out about editing recently sent messages by bot
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