Skip to content

Commit

Permalink
Merge pull request #1320 from cskartikey/master
Browse files Browse the repository at this point in the history
Fixes direct_message_delete()
  • Loading branch information
adw0rd committed May 6, 2023
2 parents 62c38af + 3eeeb82 commit 52438ed
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions instagrapi/mixins/direct.py
Original file line number Diff line number Diff line change
Expand Up @@ -610,9 +610,6 @@ def direct_message_delete(self, thread_id: int, message_id: int) -> bool:
data = self.with_default_data({})
data.pop("_uid", None)
data.pop("device_id", None)
data["is_shh_mode"] = 0
data["send_attribution"] = "direct_thread"
data["original_message_client_context"] = self.generate_mutation_token()
result = self.private_request(
f"direct_v2/threads/{thread_id}/items/{message_id}/delete/", data=data
)
Expand Down

0 comments on commit 52438ed

Please sign in to comment.