junhoyeo / threads-api

Unofficial, Reverse-Engineered Node.js/TypeScript client for Meta's Threads. Web UI Included.
https://threads.junho.io
MIT License
1.58k stars 135 forks source link

Post Deleting #93

Closed JamelHammoud closed 12 months ago

JamelHammoud commented 1 year ago

Closes #88 You can now delete posts! I also updated the publish function to return the published post ID.

You can use it like this:


  const threadsAPI = new ThreadsAPI({
    username: 'jamel.hammoud',
    password: 'PASSWORD,
  });

  const postId = await threadsAPI.publish('This will delete in 2 seconds');

  setTimeout(() => {
    threadsAPI.delete(postId);
  }, 2000);
junhoyeo commented 12 months ago

Thanks 😉 @JamelHammoud