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

Change variable type for list of chats #101

Merged
merged 2 commits into from
Sep 8, 2024
Merged

Conversation

Pireirik
Copy link
Contributor

@Pireirik Pireirik commented Sep 6, 2024

The chats API at Ozon might have been updated days ago. Previously, the API returned the two variables, first_unread_message_id and last_message_id, as the type of string. But now, the return values have been changed to the uint64 type, consistently 19-digit numbers. Moreover, the official documentation for these two variables has also been updated to reflect the uint64 type. Keeping them as strings causes deserialization issues and results in continuous errors. Therefore, they should be changed to the uint64 type.

…in ListChatsChatData struct for the list of chats reques
…to uint64 and reduce one digit for the testing
@diPhantxm
Copy link
Owner

Hi!
Thank you very much for your contribution and attention.
If you find anything else wrong, please feel free to send a PR. The community and I will be very pleased :)

@diPhantxm diPhantxm merged commit ccd3610 into diPhantxm:master Sep 8, 2024
4 checks passed
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