Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ class TeamsChannelAccount(AgentsModel):

:param id: Channel id for the user or bot on this channel (Example: ``joe@smith.com``, or ``@joesmith`` or ``123456``)
:type id: str
:param aad_object_id: Azure Active Directory object id for the user.
:type aad_object_id: str
:param role: Role of the user in the channel.
:type role: str
:param name: Display friendly name
:type name: str
:param given_name: Given name part of the user name.
Expand All @@ -30,6 +34,8 @@ class TeamsChannelAccount(AgentsModel):
model_config = ConfigDict(extra="allow")

id: str = None
aad_object_id: str = None
role: str = None
name: str = None
Comment thread
rodrigobr-msft marked this conversation as resolved.
Comment thread
rodrigobr-msft marked this conversation as resolved.
given_name: str = None
surname: str = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ async def on_adaptive_card_invoke(
raise _InvokeResponseException(HTTPStatus.NOT_IMPLEMENTED)

@staticmethod
def _create_invoke_response(body: BaseModel = None) -> InvokeResponse:
def _create_invoke_response(body: BaseModel | None = None) -> InvokeResponse:
serialized_body = (
body.model_dump(mode="json", by_alias=True, exclude_none=True)
if body
Expand Down
Loading
Loading