How many characters should be allocated for uploaded media?

media

#1

I haven’t found anything in the docs related to this; when posting status updates with images using media/upload and then statuses/update with the media_ids parameter, how many characters should I reserve for each uploaded image so that I can show the user the correct number of characters when they compose their tweet? The Twitter client starts at 117 with one uploaded image (reserving 23 for the image), so I can mirror that in my app, but I’d like to understand if there’s a way to either programmatically know, or else some rules I should follow.


#2

That’s correct. It’s the value from help/configuration in the short_url_length_https parameter (23 chars). You only need to reserve one of these URLs even for a multi-image Tweet, so you can use up to 117 characters in your post.


#3

Great, thanks Andy!