Skip to content

Commit 5cdc4ce

Browse files
authored
fix: limit media_ids count from 1 to 4 (#539)
1 parent 7048746 commit 5cdc4ce

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/types/v2/tweet.definition.v2.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,11 @@ export interface SendTweetV2Params {
182182
place_id: string;
183183
};
184184
media?: {
185-
media_ids?: string[];
185+
media_ids?:
186+
| [string]
187+
| [string, string]
188+
| [string, string, string]
189+
| [string, string, string, string];
186190
tagged_user_ids?: string[];
187191
};
188192
poll?: {

0 commit comments

Comments
 (0)