async def get(self,request_configuration: Optional[RequestConfiguration[HostedContentsRequestBuilderGetQueryParameters]] = None) -> Optional[ChatMessageHostedContentCollectionResponse]:
        """
        Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content.
        param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
        Returns: Optional[ChatMessageHostedContentCollectionResponse]
        Find more info here: https://learn.microsoft.com/graph/api/chatmessage-list-hostedcontents?view=graph-rest-1.0
        """
        request_info = self.to_get_request_information(
            request_configuration
        )
        from ......models.o_data_errors.o_data_error import ODataError

        error_mapping: dict[str, type[ParsableFactory]] = {
            "XXX": ODataError,
        }
        if not self.request_adapter:
            raise Exception("Http core is null") 
        from ......models.chat_message_hosted_content_collection_response import ChatMessageHostedContentCollectionResponse

        return await self.request_adapter.send_async(request_info, ChatMessageHostedContentCollectionResponse, error_mapping)

        Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content.
        param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
        Returns: Optional[ChatMessageHostedContentCollectionResponse]
        Find more info here: https://learn.microsoft.com/graph/api/chatmessage-list-hostedcontents?view=graph-rest-1.0
        
msgraph/generated/chats/item/messages/item/hosted_contents/hosted_contents_request_builder.py