Class Tweet

The details of a single tweet.

Implements

Constructors

Properties

bookmarkCount: number

The number of bookmarks of a tweet.

conversationId: string

The ID of tweet which started the current conversation.

createdAt: string

The creation date of the tweet.

entities: TweetEntities

Additional tweet entities like urls, mentions, etc.

fullText: string

The full text content of the tweet.

id: string

The rest id of the tweet.

lang: string

The language in which the tweet is written.

likeCount: number

The number of likes of the tweet.

media?: TweetMedia[]

The urls of the media contents of the tweet (if any).

quoteCount: number

The number of quotes of the tweet.

quoted?: Tweet

The tweet which is quoted in the tweet.

replyCount: number

The number of replies to the tweet.

replyTo?: string

The rest id of the tweet to which the tweet is a reply.

retweetCount: number

The number of retweets of the tweet.

retweetedTweet?: Tweet

The tweet which is retweeted in this tweet (if any).

tweetBy: User

The details of the user who made the tweet.

url: string

The URL to the tweet.

viewCount: number

The number of views of a tweet.

Accessors

Methods

  • Extracts and deserializes multiple target tweets from the given raw response data.

    Parameters

    • response: {}

      The raw response data.

    • ids: string[]

      The ids of the target tweets.

    Returns Tweet[]

    The target deserialized tweets.

  • Extracts and deserializes a single target tweet from the given raw response data.

    Parameters

    • response: {}

      The raw response data.

    • id: string

      The id of the target tweet.

    Returns undefined | Tweet

    The target deserialized tweet.

  • Extracts and deserializes the timeline of tweets from the given raw response data.

    Parameters

    • response: {}

      The raw response data.

    Returns Tweet[]

    The deserialized timeline of tweets.