sinch.domains.conversation.models.v1.sinch_events.events.inbound_message module

class sinch.domains.conversation.models.v1.sinch_events.events.inbound_message.InboundMessage(
*,
accept_time: datetime | None = None,
channel_identity: ChannelIdentity | None = None,
contact_id: Annotated[str, Strict(strict=True)] | None = None,
conversation_id: Annotated[str, Strict(strict=True)] | None = None,
direction: Literal['TO_APP', 'TO_CONTACT'] | Annotated[str, Strict(strict=True)] | None = None,
id: Annotated[str, Strict(strict=True)] | None = None,
metadata: Annotated[str, Strict(strict=True)] | None = None,
injected: Annotated[bool, Strict(strict=True)] | None = None,
sender_id: Annotated[str, Strict(strict=True)] | None = None,
processing_mode: Literal['CONVERSATION', 'DISPATCH'] | Annotated[str, Strict(strict=True)] | None = None,
contact_message: ChannelSpecificContactMessage | ChoiceResponseContactMessage | FallbackContactMessage | LocationContactMessage | MediaCardContactMessage | MediaContactMessage | ProductResponseContactMessage | TextContactMessage | None = None,
**extra_data: Any,
)[source]

Bases: MessageCommonProps, SinchEvent

Inbound message container (contact message + channel/contact info).

Parameters:
contact_message: ChannelSpecificContactMessage | ChoiceResponseContactMessage | FallbackContactMessage | LocationContactMessage | MediaCardContactMessage | MediaContactMessage | ProductResponseContactMessage | TextContactMessage | 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].