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

conflict in Id of the message #511

Closed
mostafa8026 opened this issue Mar 16, 2019 · 1 comment
Closed

conflict in Id of the message #511

mostafa8026 opened this issue Mar 16, 2019 · 1 comment

Comments

@mostafa8026
Copy link

In my bot Api when it sends message, the received id is not the one which is must be. because later when I want to get this message, it returns null.
Consdier that the message sending status in this case is sendingStatePending and my message has inline query markup.

@levlam
Copy link
Contributor

levlam commented Mar 16, 2019

A yet unsent message has a temporary message ID, because persistent message ID can be assigned only by the server. You need to handle updateMessageSendSucceeded to correctly handle this change. Note that a lot of other fields besides message_id can change after successful message sending.

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

2 participants