Giter Club home page Giter Club logo

Comments (2)

julien-c avatar julien-c commented on July 25, 2024

Thanks for reporting! To your knowledge, is it 22 characters per image, or for all the associated images?

from circular.

jemchicomac avatar jemchicomac commented on July 25, 2024

Hi! I do not know in detail. What I can tell is Buffer only allows embedding 1 and only 1 image and this is how they counts the remaining letters:

image

In this case, allows 117 characters as you can see in the example image. A three character tweet ("one" in this case) + an image leaves you with 114 remaining characters, I believe 22 for the link and 1 blank space.

Images are turned into twitter links (http://t.co/...) of a fix size. Seems that GET /help/configuration tells you in real time the length of these URL because seems to change over time. Nowadays seems t.co links lenght is 22 characters:

image

You can read this here: https://dev.twitter.com/overview/t.co

Sorry in advance if my analysis contains any kind mislead. I'm not an expert on this twitter-API details :-)

from circular.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.