TargetedMessageInfoEntity 类

包含提示预览的目标消息信息的实体。

Warning

Preview

此类为预览版,将来可能会更改。

诊断:ExperimentalTeamsTargeted

通过分析和验证关键字参数中的输入数据来创建新模型。

引发 [ValidationError][pydantic_core。如果无法验证输入数据以形成有效的模型,则 ValidationError]。

self 是显式位置仅允许 自己 作为字段名称。

构造函数

TargetedMessageInfoEntity(*, type: Literal['targetedMessageInfo'] = 'targetedMessageInfo', messageId: str, **extra_data: Any)

仅限关键字的参数

名称 说明
type
默认值: targetedMessageInfo
messageId
必需

属性

message_id

此活动正在答复的目标消息的 ID

message_id: str

model_config

模型的配置应为符合 [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}

type

目标消息信息的类型标识符

type: Literal['targetedMessageInfo']