Conversation Class

Represents a Teams conversation.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Constructor

Conversation(*, id: str, tenantId: str | None = None, conversationType: Literal['personal', 'groupChat', 'channel'] | str, name: str | None = None, isGroup: bool | None = None, members: List[Account] | None = None, **extra_data: Any)

Keyword-Only Parameters

Name Description
id
Required
tenantId
Default value: None
conversationType
Required
name
Default value: None
isGroup
Default value: None
members
Default value: None

Attributes

conversation_type

The Conversations Type

conversation_type: Literal['personal', 'groupChat', 'channel'] | str

id

Conversation ID

id: str

is_group

If the Conversation supports multiple participants

is_group: bool | None

members

List of members in this conversation

members: List[Account] | None

model_config

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_config: ClassVar[ConfigDict] = {'alias_generator': AliasGenerator(alias=None, validation_alias=<staticmethod(<function CustomBaseModel.validation_alias_generator>)>, serialization_alias=<staticmethod(<function CustomBaseModel.serialization_alias_generator>)>), 'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True, 'serialize_by_alias': True, 'validate_by_alias': True, 'validate_by_name': True}

name

The Conversations Name

name: str | None

tenant_id

Conversation Tenant ID

tenant_id: str | None