Skip to content

Conversation

@pershinmr
Copy link

@pershinmr pershinmr commented Jan 5, 2025

Per https://core.telegram.org/bots/api#update only one of the field is present - so currently update with edited_message breaks the Pydantic model schema validation:

ERROR:root:1 validation error for Update
message
  Field required [type=missing, input_value={'update_id': 222768138, ...type': 'bot_command'}]}}, input_type=dict]

as message field is not optional.

This PR addresses this.

@pershinmr pershinmr closed this Jan 5, 2025
@pershinmr pershinmr deleted the fix_update_model_schema branch January 5, 2025 13:21
@pershinmr pershinmr restored the fix_update_model_schema branch January 5, 2025 13:22
@pershinmr pershinmr reopened this Jan 5, 2025
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.

1 participant