AsyncTelegram2 icon indicating copy to clipboard operation
AsyncTelegram2 copied to clipboard

Get Message ID

Open jordigrau83 opened this issue 9 months ago • 0 comments

I want to edit a message that I'm sending to a user via:

Sent = myBot.sendTo(userid[0], msgtxt);

BUT to edit the message I need the messageID of that message, how do I get it?? the SendTo function only returns a boolean and I also tried with this method:

TBMessage msg; msg.chatId =userid[0]; myBot.sendMessage(msg, "test"); Serial.println(" messageID: " + String(msg.messageID));

but msg.messageID is not the real number :( I only get the real messageID from received messages, but I don't want to edit a received message, I want to edit the message that I send. any help?

jordigrau83 avatar May 06 '24 22:05 jordigrau83