Skip to content

The API v2 cut tweet text to 270 characters, but real text length is more then 270 chars #202

@eworker2003

Description

@eworker2003

Describe the bug
The API v2 cut tweet text to 270 characters, but real text length is more then 270 chars.
Tweet text contains more then 270 chars:
https://x.com/Gurudev/status/1979249076425363763

To Reproduce
Steps to reproduce the behavior:

  1. get tweet by id. I use API v2, for this tweet:
    https://api.x.com/2/tweets?ids=1979249076425363763&expansions=attachments.media_keys&media.fields=url,preview_image_url,variants

  2. result - text is cut to 270 chars:
    It is heartening to see 210 Naxalites lay down their arms - a step long overdue. The efforts of the Hon’ble Home Minister @AmitShah and @pmoindia have paved the way for greater peace and prosperity. Congratulations to @pmoindia and Hon’ble @AmitShah for this commendable

Expected behavior
The result text should be:
It is heartening to see 210 Naxalites lay down their arms - a step long overdue. The efforts of the Hon’ble Home Minister @AmitShah and @pmoindia have paved the way for greater peace and prosperity. Congratulations to @pmoindia and Hon’ble @AmitShah for this commendable achievement.

Additional context
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions