HTTP 400 · Bad Request
MESSAGE_NOT_MODIFIED
The provided message data is identical to the previous message data, the message wasn't modified.
HTTP 400
Messages
When & why it happens
editMessage was called with the exact same text/markup the message already has — server refuses to no-op edit.
Handling in gogram
Surfaced as *gogram.ErrResponseCode. Match on the message:
if err, ok := err.(*gogram.ErrResponseCode); ok {
if err.Message == "MESSAGE_NOT_MODIFIED" {
// 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_ID_INVALIDThe provided message id is invalid.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.