sinch.domains.conversation.models.v1.messages.categories.choice.choice_message module
- class sinch.domains.conversation.models.v1.messages.categories.choice.choice_message.ChoiceMessage(
- *,
- choices: Annotated[list[Annotated[CallChoiceMessage | LocationChoiceMessage | TextChoiceMessage | UrlChoiceMessage | CalendarChoiceMessage | ShareLocationChoiceMessage, BeforeValidator(func=_validate_exactly_one_choice_message_key, json_schema_input_type=PydanticUndefined)]], Len(min_length=0, max_length=None)],
- text_message: TextMessage | None = None,
- message_properties: ChoiceMessageProperties | None = None,
- **extra_data: Any,
Bases:
SnakeCaseExtrasModel- Parameters:
choices (Annotated[list[Annotated[CallChoiceMessage | LocationChoiceMessage | TextChoiceMessage | UrlChoiceMessage | CalendarChoiceMessage | ShareLocationChoiceMessage, BeforeValidator(func=~sinch.domains.conversation.models.v1.messages.categories.choice.choice_option._validate_exactly_one_choice_message_key, json_schema_input_type=PydanticUndefined)]], Len(min_length=0, max_length=None)])
text_message (TextMessage | None)
message_properties (ChoiceMessageProperties | None)
extra_data (Any)
- choices: Annotated[list[Annotated[CallChoiceMessage | LocationChoiceMessage | TextChoiceMessage | UrlChoiceMessage | CalendarChoiceMessage | ShareLocationChoiceMessage, BeforeValidator(func=_validate_exactly_one_choice_message_key, json_schema_input_type=PydanticUndefined)]], Len(min_length=0, max_length=None)]
- text_message: TextMessage | None
- message_properties: ChoiceMessageProperties | None
- model_config = {'extra': 'allow', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].