Twitter Removes the 140 character limit from Direct Messages
June 11, 2015
Twitter has done a lot to improve Direct Messages over the past year and have much more exciting work on the horizon. One change coming in July that Twitter want to make you aware of now (and first!) is the removal of the 140 character limit in Direct Messages. In order to make this change as seamless as possible for you Twitter has included some recommendations below to ensure all your applications and services can handle these longer format messages before Twitter flips the switch.
Twitter recommends taking the following actions in preparation:
- Review the new API additions below.
- Update your GET requests so you will be able to receive the full length of DM text.
- Adjust your app UI to accommodate longer DM text.
Twitter encourages you to test and deploy the above changes in advance, but you won’t be able to send longer DMs until Twitter launches it in July. In the coming weeks though, Twitter will update this post to include directions on how to test these changes, as well as a more specific launch date.
You may be wondering what this means for the public side of Twitter. Nothing! Tweets will continue to be the 140 characters they are today.
- REST API
DM read endpoints (GET direct_messages, GET direct_messages/sent and GET direct_messages/show)
Send “full_text=true” as a query parameter to receive long DM text. If this parameter is not provided, you will get a truncated version of the DM. There will be no structural changes to the response returned by these endpoints.
DM write endpoint (POST direct_messages/new)
The “text” parameter will start accepting text longer than 140 characters. The new limit for DMs will be 10k characters.
- Streaming API
User Streams (GET user) and Site Streams (GET site) will automatically start receiving DMs that have text longer than 140 characters. Unlike the REST API, no additional parameter is needed. There will be no structural changes to the objects returned by these endpoints.
Posted here with permission from Sachin Agarwal.