Skip to content

Commit

Permalink
Fix reels in inbox
Browse files Browse the repository at this point in the history
  • Loading branch information
3l0w committed Aug 31, 2022
1 parent d43e9d0 commit 3e31ed3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion inbox.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ type InboxItem struct {
TqSeqID int `json:"tq_seq_id"`

// Type there are a few types:
// text, like, raven_media, action_log, media_share, reel_share, link
// text, like, raven_media, action_log, media_share, reel_share, link, clip
Type string `json:"item_type"`

// Text is message text.
Expand All @@ -108,6 +108,7 @@ type InboxItem struct {

Like string `json:"like"`

Clip *clip `json:"clip"`
Reel *reelShare `json:"reel_share"`
Media *Item `json:"media"`
MediaShare *Item `json:"media_share"`
Expand Down Expand Up @@ -164,6 +165,10 @@ type reelShare struct {
Media Item `json:"media"`
}

type clip struct {
Media Item `json:"clip"`
}

type actionLog struct {
Description string `json:"description"`
}
Expand Down

0 comments on commit 3e31ed3

Please sign in to comment.