Skip to content

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

Package listing

@kody/x

src/like-tweet.ts

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

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