Skip to content

Built for people who want to own their automations. Join the waitlist for an invite.

Package listing

@kody/x

src/repost-tweet.ts

12 lines · 427 B · TypeScript
import { repostTweet } from './client.ts'
import type { XTweetActionParams } from './client.ts'

/**
 * Repost or dry-run reposting an X post. Requires confirm: true.
 * @example
 * import repostTweet from 'kody:@kody/x/repost-tweet'
 * const preview = await repostTweet({ tweetId: '123', dryRun: true })
 */
export default async function repostTweetEntrypoint(params: XTweetActionParams) {
	return await repostTweet(params)
}