Skip to content

Commit

Permalink
Merge pull request #10 from arshamalh/dev
Browse files Browse the repository at this point in the history
Fix: media attachments.
  • Loading branch information
arshamalh authored Jun 22, 2022
2 parents 05866f8 + 4dab8c8 commit eb9f79d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions entities.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ type Place struct {
type Media struct {
MediaKey string `json:"media_key"`
Type string `json:"type"`
Url string `json:"url"`
DurationMs int `json:"duration_ms,omitempty"`
Height int `json:"height,omitempty"`
NonPublicMetrics map[string]int `json:"non_public_metrics,omitempty"`
Expand Down
2 changes: 1 addition & 1 deletion entities/tweet.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type Tweet struct {
AuthorID string `json:"author_id,omitempty"`
ConversationID string `json:"conversation_id,omitempty"`
InReplyToUserID string `json:"in_reply_to_user_id,omitempty"`
Attachments []map[string]string `json:"attachments,omitempty"`
Attachments map[string][]string `json:"attachments,omitempty"`
ContextAnnotations []map[string]ContextAnnotation `json:"context_annotations,omitempty"`
Entities TweetEntities `json:"entities,omitempty"`
Geo Geo `json:"geo,omitempty"`
Expand Down

0 comments on commit eb9f79d

Please sign in to comment.