Skip to content

Commit

Permalink
Merge pull request #1821 from birdhouses/master
Browse files Browse the repository at this point in the history
Update extractors.py
  • Loading branch information
subzeroid authored Feb 26, 2024
2 parents e080e28 + e4565a3 commit 05f7654
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions instagrapi/extractors.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,7 @@ def extract_direct_message(data):
if xma_media_share:
data["xma_share"] = extract_media_v1_xma(xma_media_share[0])

data['timestamp'] = datetime.datetime.fromtimestamp(data['timestamp'] // 1_000_000)
data['user_id'] = str(data['user_id'])
data['timestamp'] = datetime.datetime.fromtimestamp(int(data['timestamp']) // 1_000_000)

return DirectMessage(**data)

Expand Down

0 comments on commit 05f7654

Please sign in to comment.