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

Ignore updates that produce parse failures #175

Merged
merged 1 commit into from
May 15, 2024

Conversation

s-and-witch
Copy link
Contributor

@s-and-witch s-and-witch commented May 15, 2024

I implemented updates fetching as a list of Value, so that allow us to receive some of the updates even if the others can't be parsed due to API changes. Tested on github.com/s-and-witch/playground-hs, here is an example of error message:

Failed to parse an update! Please, make sure you have the latest version of telegram-bot-api library and consider opening an issue if so. Error message: Error in $.message.entities[0].type: parsing Telegram.Bot.API.Types.MessageEntity.MessageEntityType failed, expected one of the tags ["mention","hashtag","bot_command","url","email","bold","italic","underline","strikethrough","code","pre","text_link","text_mention","cashtag","phone_number","spoiler","custom_emoji"], but found tag "blockquote"

…y work after API changes on the side of telegram
@swamp-agr swamp-agr merged commit d3cae4c into fizruk:master May 15, 2024
0 of 8 checks passed
@swamp-agr
Copy link
Collaborator

Awesome! Thank you!

@swamp-agr swamp-agr mentioned this pull request May 25, 2024
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.

None yet

2 participants