Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow setting alt_text for uploaded media #34

Closed
wants to merge 1 commit into from

Conversation

rockshassa
Copy link

No description provided.

@sferik
Copy link
Owner

sferik commented Mar 6, 2025

You should be able to set alt text with a standard POST request, like this:

post_body = "{\"media_id\" : \"MEDIA_ID\", \"alt_text\":{ \"text\" : \"ALT TEXT\"}}"
x_client.post("media/metadata/create.json", post_body)

As such, I don't think this library needs to define a helper method for this functionality. I'd refer you to the History and Philosophy section of the README, which states that "No code is faster than no code."

@sferik sferik closed this Mar 6, 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