sinch.domains.conversation.models.v1.messages.categories.card.card_message module
- class sinch.domains.conversation.models.v1.messages.categories.card.card_message.CardMessage(
- *,
- 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)] | None = None,
- description: Annotated[str, Strict(strict=True)] | None = None,
- height: Literal['UNSPECIFIED_HEIGHT', 'SHORT', 'MEDIUM', 'TALL'] | Annotated[str, Strict(strict=True)] | None = None,
- title: Annotated[str, Strict(strict=True)] | None = None,
- media_message: MediaProperties | None = None,
- message_properties: MessageProperties | 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)] | None)
description (Annotated[str, Strict(strict=True)] | None)
height (Literal['UNSPECIFIED_HEIGHT', 'SHORT', 'MEDIUM', 'TALL'] | ~typing.Annotated[str, ~pydantic.types.Strict(strict=True)] | None)
title (Annotated[str, Strict(strict=True)] | None)
media_message (MediaProperties | None)
message_properties (MessageProperties | 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)] | None
- description: Annotated[str, Strict(strict=True)] | None
- height: Literal['UNSPECIFIED_HEIGHT', 'SHORT', 'MEDIUM', 'TALL'] | Annotated[str, Strict(strict=True)] | None
- title: Annotated[str, Strict(strict=True)] | None
- media_message: MediaProperties | None
- message_properties: MessageProperties | 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].