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

Sending messages should return the msg_id or there should be a method to get last_sent_msg_id #342

Open
tuloski opened this issue Jan 6, 2024 · 0 comments

Comments

@tuloski
Copy link

tuloski commented Jan 6, 2024

To edit a message we need to input the msg_id to modify, but there is not an "easy" way of getting the msg_id.
I think there could be two approaches:

  • The sendMessage should return the id of the message
  • There should be a dedicated method to retrieve the last message sent id. Something like:

int UniversalTelegramBot::getLastSentMessageId(){ return last_sent_message_id; }

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