Skip to content

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
@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.

2 participants