> ## Documentation Index
> Fetch the complete documentation index at: https://help.cryptolens.io/llms.txt
> Use this file to discover all available pages before exploring further.

# .NET: Message

> Signatures, models and behavior for SKM.V3.Methods.Message in the .NET SDK 4.0.54.

Methods related to the Message API ([Message](/api-reference/generated/Message)).
You can broadcast new messages by visiting [https://app.cryptolens.io/Message](https://app.cryptolens.io/Message).

**Namespace:** `SKM.V3.Methods`\
**Version:** 4.0.54. Both packages; all six documented target frameworks.

<CodeGroup>
  ```csharp C# theme={null}
  public class Message
  ```

  ```vb VB.NET theme={null}
  Public Class Message
  ```
</CodeGroup>

These methods return a result object. Check `Result == ResultType.Success` before using its data. In version 4.0.54, handled request and JSON errors normally return `ResultType.Error` with a diagnostic `Message`. A non-null result alone does not mean the request succeeded. See [Request Errors](/libraries/dotnet-reference/settings#request-errors).

[Web API Reference](/api-reference/generated/model/Message)

## Constructors

<a id="ctor-8dbf7714a4" />

### Message()

Creates an empty Message object. This constructor does not send an API request.

<CodeGroup>
  ```csharp C# theme={null}
  public Message()
  ```

  ```vb VB.NET theme={null}
  Public Sub New()
  ```
</CodeGroup>

## Methods

<a id="create-message-5918ec452b" />

### CreateMessage(string, CreateMessageModel)

This method will create a new message (which you can also manage here). This method requires Edit Messages permission.

<CodeGroup>
  ```csharp C# theme={null}
  public static CreateMessageResult CreateMessage(string token, CreateMessageModel parameters)
  ```

  ```vb VB.NET theme={null}
  Public Shared Function CreateMessage(token As String, parameters As CreateMessageModel) As CreateMessageResult
  ```
</CodeGroup>

[Web API Reference](/api-reference/generated/CreateMessage)

**Parameters**

| Name | Type | Description |
| - | - | - |
| `token` | `string` | The access token. Read more at [Auth](/api-reference/generated/Auth) |
| `parameters` | [`CreateMessageModel`](/libraries/dotnet-reference/models/create-message-model) | The parameters that the method needs |

**Returns:** [`CreateMessageResult`](/libraries/dotnet-reference/models/create-message-result). The API response. Check `Result` and `Message` before using the returned data.

<a id="get-messages-569394da9b" />

### GetMessages(string, GetMessagesModel)

This method will return a list of messages that were broadcasted.You can create new messages here.
Messages can be filtered based on the time and the channel.

<CodeGroup>
  ```csharp C# theme={null}
  public static GetMessagesResult GetMessages(string token, GetMessagesModel parameters)
  ```

  ```vb VB.NET theme={null}
  Public Shared Function GetMessages(token As String, parameters As GetMessagesModel) As GetMessagesResult
  ```
</CodeGroup>

[Web API Reference](/api-reference/generated/GetMessages)

**Parameters**

| Name | Type | Description |
| - | - | - |
| `token` | `string` | The access token. Read more at [Auth](/api-reference/generated/Auth) |
| `parameters` | [`GetMessagesModel`](/libraries/dotnet-reference/models/get-messages-model) | The parameters that the method needs |

**Returns:** [`GetMessagesResult`](/libraries/dotnet-reference/models/get-messages-result). The API response. Check `Result` and `Message` before using the returned data.

<a id="remove-message-acf4a796bf" />

### RemoveMessage(string, RemoveMessageModel)

This method will remove a message that was previously broadcasted (which you can also manage here). This method requires Edit Messages permission.

<CodeGroup>
  ```csharp C# theme={null}
  public static BasicResult RemoveMessage(string token, RemoveMessageModel parameters)
  ```

  ```vb VB.NET theme={null}
  Public Shared Function RemoveMessage(token As String, parameters As RemoveMessageModel) As BasicResult
  ```
</CodeGroup>

[Web API Reference](/api-reference/generated/RemoveMessage)

**Parameters**

| Name | Type | Description |
| - | - | - |
| `token` | `string` | The access token. Read more at [Auth](/api-reference/generated/Auth) |
| `parameters` | [`RemoveMessageModel`](/libraries/dotnet-reference/models/remove-message-model) | The parameters that the method needs |

**Returns:** [`BasicResult`](/libraries/dotnet-reference/models/basic-result). The API response. Check `Result` and `Message` before using the returned data.

[.NET SDK Reference](/libraries/dotnet-api) · [Reviewed Source Revision](https://github.com/Cryptolens/cryptolens-dotnet/tree/30aaf399ba53d9a111bee896c35bf557fa219394)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.