Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get Message ID #140

Open
jordigrau83 opened this issue May 6, 2024 · 0 comments
Open

Get Message ID #140

jordigrau83 opened this issue May 6, 2024 · 0 comments

Comments

@jordigrau83
Copy link

jordigrau83 commented May 6, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant