Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/okikio/inthistweet. ✨ Futuristic ✨ twitter image, gif and video downloader. Enter a Tweet URL, cli inthistweet.app
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889import type { TwitterCard } from './card.ts'import type { TweetEditControl } from './edit.ts'import type { Indices, TweetEntities } from './entities.ts'import type { MediaDetails } from './media'import type { TweetPhoto } from './photo.ts'import type { TweetUser } from './user.ts'import type { TweetVideo } from './video.ts'
/** * Base tweet information shared by a tweet, a parent tweet and a quoted tweet. */export interface TweetBase { /** * Language code of the tweet. E.g "en", "es". */ lang: string /** * Creation date of the tweet in the format ISO 8601. */ created_at: string /** * Text range of the tweet text. */ display_text_range: Indices /** * All the entities that are part of the tweet. Like hashtags, mentions, urls, etc. */ entities: TweetEntities /** * The unique identifier of the tweet. */ id_str: string /** * The tweet text, including the raw text from the entities. */ text: string /** * Information about the user who posted the tweet. */ user: TweetUser /** * Edit information about the tweet. */ edit_control: TweetEditControl isEdited: boolean isStaleEdit: boolean}
/** * A tweet as returned by the the Twitter syndication API. */export interface Tweet extends TweetBase { __typename: 'Tweet' favorite_count: number mediaDetails?: MediaDetails[] photos?: TweetPhoto[] video?: TweetVideo card?: TwitterCard conversation_count: number news_action_type: 'conversation' quoted_tweet?: QuotedTweet in_reply_to_screen_name?: string in_reply_to_status_id_str?: string in_reply_to_user_id_str?: string parent?: TweetParent possibly_sensitive?: boolean}
/** * The parent tweet of a tweet reply. */export interface TweetParent extends Tweet { reply_count: number retweet_count: number favorite_count: number}
/** * A tweet quoted by another tweet. */export interface QuotedTweet extends Tweet { reply_count: number retweet_count: number favorite_count: number self_thread?: { id_str?: string }}