Skip to content

Add share_with_followers in SendTweetV2Params#599

Merged
plhery merged 2 commits intoplhery:masterfrom
plbompard:feature/post-community-and-followers
Sep 4, 2025
Merged

Add share_with_followers in SendTweetV2Params#599
plhery merged 2 commits intoplhery:masterfrom
plbompard:feature/post-community-and-followers

Conversation

@plbompard
Copy link
Contributor

@plbompard plbompard commented Sep 3, 2025

Summary

When posting to communities, this makes the post to be shared with followers and show up on the timeline too.

Official doc

https://docs.x.com/x-api/posts/create-post#body-share-with-followers

@plbompard plbompard marked this pull request as ready for review September 3, 2025 19:47
reply_settings?: TTweetReplySettingsV2 | string;
text?: string;
community_id?: string;
share_with_followers?: 'True' | 'False';
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, though let's make it a boolean!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I blindly followed the for_super_followers_only example initially :D

Changed it to boolean in latest commit 👌

@plhery plhery merged commit 966d1b7 into plhery:master Sep 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants