File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -183,6 +183,11 @@ export type NoteTweetEntitiesV2 = Omit<TweetEntitiesV2, 'annotations'>;
183183
184184export type TTweetReplySettingsV2 = 'mentionedUsers' | 'following' | 'everyone' ;
185185
186+ export interface TweetArticleV2 {
187+ cover_media ?: MediaObjectV2 ;
188+ media_entities ?: MediaObjectV2 [ ] ;
189+ }
190+
186191export interface SendTweetV2Params {
187192 direct_message_deep_link ?: string ;
188193 for_super_followers_only ?: 'True' | 'False' ;
@@ -238,6 +243,7 @@ export interface TweetV2 {
238243 source ?: string ;
239244 note_tweet ?: NoteTweetV2 ;
240245 community_id ?: string ;
246+ article ?: TweetArticleV2 ;
241247}
242248
243249export interface ApiV2Includes {
Original file line number Diff line number Diff line change @@ -39,11 +39,13 @@ export interface TweetV2UserTimelineParams extends TweetV2PaginableTimelineParam
3939}
4040
4141// eslint-disable-next-line @typescript-eslint/no-empty-interface
42- export interface TweetV2HomeTimelineParams extends TweetV2UserTimelineParams { }
42+ export interface TweetV2HomeTimelineParams extends TweetV2UserTimelineParams { }
4343
44- export type TTweetv2Expansion = 'attachments.poll_ids' | 'attachments.media_keys'
44+ export type TTweetv2Expansion = 'attachments.poll_ids' | 'attachments.media_keys' | 'attachments.media_source_tweet'
4545 | 'author_id' | 'referenced_tweets.id' | 'in_reply_to_user_id' | 'edit_history_tweet_ids'
46- | 'geo.place_id' | 'entities.mentions.username' | 'referenced_tweets.id.author_id' ;
46+ | 'geo.place_id' | 'entities.mentions.username' | 'referenced_tweets.id.author_id'
47+ | 'article.cover_media' | 'article.media_entities'
48+ | 'entities.note.mentions.username' | 'referenced_tweets.id.attachments.media_keys' ;
4749export type TTweetv2MediaField = keyof MediaObjectV2 ;
4850export type TTweetv2PlaceField = keyof PlaceV2 ;
4951export type TTweetv2PollField = keyof PollV2 ;
You can’t perform that action at this time.
0 commit comments