Returned the HTML field of the tweet

This commit is contained in:
Alexander Sheiko 2020-12-17 10:39:45 +02:00
parent 6414a834ea
commit 29ee72026a
2 changed files with 36 additions and 0 deletions

View file

@ -13,6 +13,7 @@ type (
// Tweet type.
Tweet struct {
Hashtags []string
HTML string
ID string
IsQuoted bool
IsPin bool
@ -53,9 +54,11 @@ type (
Media []struct {
MediaURLHttps string `json:"media_url_https"`
Type string `json:"type"`
URL string `json:"url"`
} `json:"media"`
URLs []struct {
ExpandedURL string `json:"expanded_url"`
URL string `json:"url"`
} `json:"urls"`
} `json:"entities"`
ExtendedEntities struct {