Skip to content

Conversation

mircoianese
Copy link
Collaborator

The field topic_id on the new added class DirectMessagesTopic is of type Long.

java.io.IOException: com.google.gson.JsonSyntaxException: java.lang.NumberFormatException: Expected an int but was 5638634867 at line 9 column 288 path $.result[7].message.direct_messages_topic.topic_id

In the documentation, the term Integer is also used for 64-bit fields, so it may be safer to convert all Integers to Long in our code, as they might use larger values without prior notice.

@pengrad pengrad merged commit 3142914 into pengrad:master Aug 25, 2025
1 check failed
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

Successfully merging this pull request may close these issues.

2 participants