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

IDs in Retrieve the Tweet Details #116

Closed
linxux opened this issue Jan 29, 2024 · 1 comment
Closed

IDs in Retrieve the Tweet Details #116

linxux opened this issue Jan 29, 2024 · 1 comment
Milestone

Comments

@linxux
Copy link

linxux commented Jan 29, 2024

According to the Twitter IDs,

Each object within Twitter - a Tweet, Direct Message, User, List, and so on - has a unique ID.

Twitter IDs are unique 64-bit unsigned integers that are generated by Snowflake.

The IDs in response from api.tweet_details should be represented as strings by default or with a conrecponse field suffix with _str,

  • conversationId
  • inReplyToTweetId
  • inReplyToUser.id
  • mentionedUsers[].id
{
  ...
  "conversationId":1751817528785936384,
+ "conversationId_str":"1751817528785936414",
  "inReplyToTweetId":1751817528785936384,
+ "inReplyToTweetId_str":"1751817528785936414",
  "inReplyToUser":{
    ...
    "id":1486473049146904576,
+   "id_str":"1486473049146904576"
  },
  "mentionedUsers":[
    {
...
      "id":1486473049146904576,
+     "id_str":"1486473049146904576"
    }
  ],
...
}
@vladkens vladkens added this to the v0.11 milestone Feb 10, 2024
@vladkens
Copy link
Owner

@linxux should be fixed in v0.11.

Thank you!

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

No branches or pull requests

2 participants