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

Bot spams with error "Unable to decode update 683818374" #442

Open
kitbuilder587 opened this issue Nov 5, 2024 · 2 comments
Open

Bot spams with error "Unable to decode update 683818374" #442

kitbuilder587 opened this issue Nov 5, 2024 · 2 comments

Comments

@kitbuilder587
Copy link

The whole message is:

Unable to decode update 683818374: Int: DownField(iconCustomEmojiId),DownField(forumTopicCreated),DownField(replyToMessage),DownField(editedMessage),DownArray,DownField(result).

It throws in com.bot4s.telegram.cats.Polling in line 24.
Is it ok to always receive this error? Bot works fine, but spam in log confuses

@ex0ns
Copy link
Contributor

ex0ns commented Nov 5, 2024

Hello ! Thank you for reporting the error, it's not normal (but happy that it does not crashes the whole bot).
As you can see here https://github.com/search?q=repo%3Abot4s%2Ftelegram%20iconCustomEmojiId&type=code

The documentation does not match the type of the field in some of those classes iconCustomEmojiId: Option[Int] = None when it should probably be string.

According to the doc:

I might have some time to fix that but I can't commit on a date. Those are minor changes and if you have the time, would you be willing opening a PR to fix them ?

There might be other places where iconCustomEmojiId is used that I have missed

@kitbuilder587
Copy link
Author

Ok, i'll open PR

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