MessagingExtensionAction Class

Messaging extension action

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

MessagingExtensionAction(*, data: Any | None = None, context: TaskModuleRequestContext | None = None, tabContext: TabEntityContext | None = None, commandId: str | None = None, commandContext: Literal['message', 'compose', 'commandbox'], botMessagePreviewAction: Literal['edit', 'send'] | None = None, botActivityPreview: List[Activity] | None = None, messagePayload: Message | None = None, **extra_data: Any)

Keyword-Only Parameters

Name Description
data
Default value: None
context
Default value: None
tabContext
Default value: None
commandId
Default value: None
commandContext
Required
botMessagePreviewAction
Default value: None
botActivityPreview
Default value: None
messagePayload
Default value: None

Attributes

bot_activity_preview

Bot activity preview

bot_activity_preview: List[ActivityBase] | None

bot_message_preview_action

Bot message preview action taken by user.

bot_message_preview_action: Literal['edit', 'send'] | None

command_context

The context from which the command originates.

command_context: Literal['message', 'compose', 'commandbox']

command_id

Id of the command assigned by Bot

command_id: str | None

message_payload

Message content sent as part of the command request.

message_payload: Message | 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}