Skip to content

An edited message ​

Editing replaces the text of a message. On a message of a conversation it is the message's own edit(text). The library sends the edit for the message it names and does not copy the app's menu rules; Instagram decides whether it saves the edit. The message's data carries edit_count, message_ephemeral_lifetime_ms and command_count as the server sent them: plain data for the caller to read (how many times the message was edited, whether it disappears, how many bot commands it carries), not a check the library makes before an edit.

The 451 app saves the edit with the GraphQL mutation IGDirectEditMessageMutation on graphql_www: the conversation, the message and the new text as body.sensitive_string_value, and the message's own client_context as offline_threading_id. The brick is DirectEditMessage({ threadId, itemId, body, offlineThreadingId? }) of @igpapi/mobile.

Instagram can refuse the edit, and a GraphQL refusal arrives as a successful HTTP answer with errors in it. The edit reads the answer, so a refusal is the typed DirectEditMessageRejectedError, never a success; an accepted edit answers the mutation's direct_edit_message as Instagram sent it.

The menu with EditEdit in a message's menu.

The composer in edit modeedit(text): the composer carries the message's text.

The edited text typedThe corrected text before saving.

The message after the editThe message shown with its edited text.

The pages of this site are the README files of the repository. The API reference is generated from the source.