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

GetChat Error Of Deserealization #1311

Closed
link1107 opened this issue Feb 1, 2024 · 2 comments
Closed

GetChat Error Of Deserealization #1311

link1107 opened this issue Feb 1, 2024 · 2 comments
Labels

Comments

@link1107
Copy link
Contributor

link1107 commented Feb 1, 2024

Describe the bug
Error of deserealization on execution of GetChat method (I suppose it affects UserChats with users who has custom emoji status).

Caused by: com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type java.lang.Boolean from String "5406611098285650804": only "true" or "false" recognized at [Source: (String)"{"ok":true,"result":{"id":522002143,"first_name":"gmanka","username":"gmankab","type":"private","active_usernames":["gmankab"],"bio":"@gmanka | @gmankachat | @gmankaus | @gmankaus_chat | @gmanka_sh | github.com/gmankab","photo":{"small_file_id":"AQADAgADzqcxG98eHR8ACAIAA98eHR8ABOCKM9BxI6mQNAQ","small_file_unique_id":"AQADzqcxG98eHR8AAQ","big_file_id":"AQADAgADzqcxG98eHR8ACAMAA98eHR8ABOCKM9BxI6mQNAQ","big_file_unique_id":"AQADzqcxG98eHR8B"},"emoji_status_custom_emoji_id":"4985626654563894116","ac"[truncated 156 chars]; line: 1, column: 634] (through reference chain: org.telegram.telegrambots.meta.api.objects.ApiResponse["result"]->org.telegram.telegrambots.meta.api.objects.Chat["profile_background_custom_emoji_id"])

To Reproduce
Execute GetChat Method from a person with custom_emoji_status

Expected behavior
Method returns Chat instance

@rubenlagus
Copy link
Owner

profileBackgroundCustomEmojiId in Chat object should be a String, happy to accept a Pull request with that change

@rubenlagus rubenlagus added the bug label Feb 3, 2024
@link1107
Copy link
Contributor Author

link1107 commented Feb 3, 2024

I've just sent a Pull request: #1315

@link1107 link1107 closed this as completed Feb 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants