Skip to content

Commit

Permalink
Merge pull request #1285 from SaeidB/master
Browse files Browse the repository at this point in the history
fix for direct_send
  • Loading branch information
adw0rd committed Apr 21, 2023
2 parents a30163a + 3a926a8 commit 7735680
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion instagrapi/mixins/direct.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,12 +242,17 @@ def direct_send(
), "Specify user_ids or thread_ids, but not both"
method = "text"
token = self.generate_mutation_token()

kwargs = {

"action": "send_item",
"is_x_transport_forward": 'false',
"send_silently": 'false',
"is_shh_mode": "0",
"send_attribution": "direct_thread",
"send_attribution": "message_button",
"client_context": token,
"mutation_token": token,
'_uuid': self.uuid,
"nav_chain": "1qT:feed_timeline:1,1qT:feed_timeline:2,1qT:feed_timeline:3,7Az:direct_inbox:4,7Az:direct_inbox:5,5rG:direct_thread:7",
"offline_threading_id": token,
}
Expand Down

0 comments on commit 7735680

Please sign in to comment.