HTTP 400 · Bad Request
MESSAGE_ID_INVALID
The provided message id is invalid.
HTTP 400
Messages
When & why it happens
The message id does not exist in this peer (already deleted, never existed, or wrong chat).
Handling in gogram
Surfaced as *gogram.ErrResponseCode. Match on the message:
if err, ok := err.(*gogram.ErrResponseCode); ok {
if err.Message == "MESSAGE_ID_INVALID" {
// handle this error
}
}
Related errors
MESSAGE_AUTHOR_REQUIREDMessage author required.MESSAGE_EDIT_TIME_EXPIREDYou can't edit this message anymore, too much time has passed since its creation.MESSAGE_EMPTYThe provided message is empty.MESSAGE_IDS_EMPTYNo message ids were provided.MESSAGE_NOT_MODIFIEDThe provided message data is identical to the previous message data, the message wasn't modified.MESSAGE_POLL_CLOSEDPoll closed.MESSAGE_TOO_LONGThe provided message is too long.MSG_ID_INVALIDInvalid message ID provided.MSG_TOO_OLDTime has passed since the message was sent, read receipts were deleted.MSG_WAIT_FAILEDA waiting call returned an error.REACTION_EMPTYEmpty reaction provided.REACTION_INVALIDThe specified reaction is invalid.