Skip to content

Align media comment payload with app fields#2609

Merged
subzeroid merged 1 commit into
masterfrom
issue-2606-comment-payload-app-fields
Jun 9, 2026
Merged

Align media comment payload with app fields#2609
subzeroid merged 1 commit into
masterfrom
issue-2606-comment-payload-app-fields

Conversation

@subzeroid

Copy link
Copy Markdown
Owner

Summary:

  • Reuse the generated media comment idempotence token as comment_creation_key.
  • Send include_e2ee_mentioned_user_list and include_media_code with media_comment().
  • Extend regression coverage for the app-like comment payload fields.

Scope:

  • This is a focused payload alignment for the main media/%s/comment/ request.
  • It does not add automatic preflight or speculative side-effect requests.

Validation:

  • .venv/bin/pytest -q tests/regression/test_comments.py
  • .venv/bin/ruff check instagrapi/mixins/comment.py tests/regression/test_comments.py
  • PYTHONUNBUFFERED=1 gtimeout 300 .venv/bin/pytest -q -s tests/live/test_comments.py::ClientCommentExtendTestCase::test_media_comment -> passed, 2 warnings

Refs #2606

@subzeroid subzeroid merged commit 36b0c3d into master Jun 9, 2026
11 checks passed
@subzeroid subzeroid deleted the issue-2606-comment-payload-app-fields branch June 9, 2026 14:00
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

Successfully merging this pull request may close these issues.

1 participant