@@ -438,12 +438,6 @@ export class Scraper {
438438 return unfollowUserV2 ( userId , this . auth ) ;
439439 }
440440
441- /**
442- * Fetch a user's details using the v2 API by their user ID.
443- * @param userId The user ID to look up.
444- * @returns A promise that resolves to the user details.
445- */
446-
447441 /**
448442 * Fetch a user's details using the v2 API by their user ID.
449443 * @param userId The user ID to look up.
@@ -733,24 +727,6 @@ export class Scraper {
733727 return getQuoteTweetsV2 ( tweetId , maxResults , this . auth ) ;
734728 }
735729
736- /**
737- * Fetch a single tweet using the v2 API.
738- * @param id The tweet ID to fetch.
739- * @returns A promise that resolves to the tweet or null if not found.
740- */
741- public getTweetV2 ( id : string ) {
742- return getTweetV2 ( id , this . auth ) ;
743- }
744-
745- /**
746- * Fetch multiple tweets using the v2 API.
747- * @param ids The tweet IDs to fetch.
748- * @returns A promise that resolves to an array of tweets.
749- */
750- public getTweetsV2 ( ids : string [ ] ) {
751- return getTweetsV2 ( ids , this . auth ) ;
752- }
753-
754730 /**
755731 * Fetches tweets from a Twitter user.
756732 * @param user The user whose tweets should be returned.
@@ -1014,7 +990,7 @@ export class Scraper {
1014990 * @param {string[] } [options.placeFields] - Array of place fields to include, if the tweet includes location data, e.g., 'full_name', 'country'.
1015991 * @returns {Promise<TweetV2 | null> } - The tweet data, including requested expansions and fields.
1016992 */
1017- async getTweetV2 (
993+ public async getTweetV2 (
1018994 id : string ,
1019995 options : {
1020996 expansions ?: TTweetv2Expansion [ ] ;
@@ -1042,7 +1018,7 @@ export class Scraper {
10421018 * @param {string[] } [options.placeFields] - Array of place fields to include, if tweets contain location data, e.g., 'full_name', 'country'.
10431019 * @returns {Promise<TweetV2[]> } - Array of tweet data, including requested expansions and fields.
10441020 */
1045- async getTweetsV2 (
1021+ public async getTweetsV2 (
10461022 ids : string [ ] ,
10471023 options : {
10481024 expansions ?: TTweetv2Expansion [ ] ;
0 commit comments