Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Tweet

import type { Tweet } from "https://raw.githubusercontent.com/takker99/scrapbox-url-customizer/0.4.3/mod.ts";

The response of https://cdn.syndication.twimg.com/tweet-result?id=:tweetId

interface Tweet {
__typename: "Tweet";
card?: Card;
conversation_count: number;
created_at: string;
display_text_range: Indices;
edit_control: Record<string, unknown>;
entities: Entities;
favorite_count: number;
id_str: string;
in_reply_to_screen_name?: string;
in_reply_to_status_id_str?: string;
in_reply_to_user_id_str?: string;
isEdited: boolean;
isStaleEdit: boolean;
lang: string;
mediaDetails?: MediaDetail[];
news_action_type: "covid19" | "conversation";
parent?: RefTweet;
photos?: Photo[];
place?: Place;
possibly_sensitive?: boolean;
quoted_tweet?: RefTweet;
self_thread?: {
id_str: string;
}
;
text: string;
user: User;
video?: Video;
}

§Properties

§
__typename: "Tweet"
[src]
§
card?: Card
[src]
§
conversation_count: number
[src]

the number of replies

§
created_at: string
[src]
§
display_text_range: Indices
[src]
§
edit_control: Record<string, unknown>
[src]
§
entities: Entities
[src]
§
favorite_count: number
[src]

the number of favorite

§
id_str: string
[src]

the tweet id

§
in_reply_to_screen_name?: string
[src]

the screen name of the user the author reply to

§
in_reply_to_status_id_str?: string
[src]

the id of the tweet the author reply to

§
in_reply_to_user_id_str?: string
[src]

the user id of the user the author reply to

§
isEdited: boolean
[src]
§
isStaleEdit: boolean
[src]
§
lang: string
[src]

the language of the tweet

§
mediaDetails?: MediaDetail[]
[src]
§
news_action_type: "covid19" | "conversation"
[src]
§
parent?: RefTweet
[src]

the tweet to be replied to

§
photos?: Photo[]
[src]
§
place?: Place
[src]
§
possibly_sensitive?: boolean
[src]
§
quoted_tweet?: RefTweet
[src]

the tweet to be quoted

§
self_thread?: {
id_str: string;
}
[src]
§
text: string
[src]

the tweet content

§
user: User
[src]

the author of the tweet

§
video?: Video
[src]